mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-05 23:51:00 +00:00
check context for most strict privacy settings
This commit is contained in:
parent
048617189a
commit
dbc6af3959
1 changed files with 4 additions and 0 deletions
|
|
@ -354,6 +354,10 @@ public class LoginActivity extends BaseFragment {
|
|||
if (isGoodPrivacy()) {
|
||||
checkTwoStepVerification();
|
||||
} else {
|
||||
Context context = getParentActivity();
|
||||
if (context == null) {
|
||||
return;
|
||||
}
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getParentActivity());
|
||||
builder.setTitle(LocaleController.getString("PrivacyTitle", R.string.PrivacyTitle));
|
||||
builder.setMessage(LocaleController.getString("MaxPrivacyInfo", R.string.MaxPrivacyInfo));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue