mirror of https://github.com/M66B/NetGuard.git
Refactoring
This commit is contained in:
parent
c7219afedd
commit
61eb1652e5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue