mirror of https://github.com/M66B/NetGuard.git
Refactoring
This commit is contained in:
parent
5f89592126
commit
035196e7cc
|
@ -528,9 +528,10 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
|
|||
|
||||
super.onResume();
|
||||
|
||||
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R && Util.isPlayStoreInstall(this)) {
|
||||
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
if (!prefs.getBoolean("qap", false)) {
|
||||
if (!prefs.getBoolean("qap", false))
|
||||
if (Util.isPlayStoreInstall(this)) {
|
||||
new AlertDialog.Builder(this)
|
||||
.setMessage(R.string.app_qap)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
@ -540,7 +541,8 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
|
|||
}
|
||||
})
|
||||
.show();
|
||||
}
|
||||
} else
|
||||
prefs.edit().putBoolean("qap", true).apply();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue