PIN is a pro feature

This commit is contained in:
M66B
2019-11-03 10:37:11 +01:00
parent 6c58d25166
commit 6b81936ec6
2 changed files with 8 additions and 3 deletions

View File

@@ -246,8 +246,13 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
if (TextUtils.isEmpty(pin))
prefs.edit().remove("pin").apply();
else
prefs.edit().putString("pin", pin).apply();
else {
boolean pro = ActivityBilling.isPro(getContext());
if (pro)
prefs.edit().putString("pin", pin).apply();
else
startActivity(new Intent(getContext(), ActivityBilling.class));
}
}
})
.setNegativeButton(android.R.string.cancel, null)