Refactoring

This commit is contained in:
M66B 2016-01-11 18:33:31 +01:00
parent c7219afedd
commit 61eb1652e5
1 changed files with 6 additions and 6 deletions

View File

@ -122,12 +122,12 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
if (isChecked) {
// Check if secondary user
if (android.os.Process.myUid() / 100000 != 0 &&
!IAB.isPurchased(ActivityPro.SKU_MULTI, ActivityMain.this)) {
prefs.edit().putBoolean("enabled", false).apply();
startActivity(new Intent(ActivityMain.this, ActivityPro.class));
return;
}
if (!IAB.isPurchased(ActivityPro.SKU_MULTI, ActivityMain.this))
if (android.os.Process.myUid() / 100000 != 0) {
prefs.edit().putBoolean("enabled", false).apply();
startActivity(new Intent(ActivityMain.this, ActivityPro.class));
return;
}
try {
final Intent prepare = VpnService.prepare(ActivityMain.this);