mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Improved OAuth third party message
This commit is contained in:
parent
903867fb39
commit
e02aa3e000
1 changed files with 22 additions and 3 deletions
|
@ -45,7 +45,6 @@ import android.view.ViewGroup;
|
|||
import android.widget.Button;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
@ -209,7 +208,17 @@ public class FragmentSetup extends FragmentBase {
|
|||
if (Helper.hasValidFingerprint(getContext()) || BuildConfig.DEBUG)
|
||||
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_GMAIL));
|
||||
else
|
||||
ToastEx.makeText(getContext(), R.string.title_setup_gmail_support, Toast.LENGTH_LONG).show();
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setTitle(item.getTitle())
|
||||
.setMessage(R.string.title_setup_gmail_support)
|
||||
.setNeutralButton(R.string.title_info, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
Helper.viewFAQ(getContext(), 6);
|
||||
}
|
||||
})
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.show();
|
||||
return true;
|
||||
} else if (itemId == R.string.title_setup_other) {
|
||||
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_SETUP));
|
||||
|
@ -225,7 +234,17 @@ public class FragmentSetup extends FragmentBase {
|
|||
if (Helper.hasValidFingerprint(getContext()) || BuildConfig.DEBUG)
|
||||
lbm.sendBroadcast(item.getIntent());
|
||||
else
|
||||
ToastEx.makeText(getContext(), R.string.title_setup_oauth_permission, Toast.LENGTH_LONG).show();
|
||||
new AlertDialog.Builder(getContext())
|
||||
.setTitle(item.getTitle())
|
||||
.setMessage(R.string.title_setup_oauth_permission)
|
||||
.setNeutralButton(R.string.title_info, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
Helper.viewFAQ(getContext(), 147);
|
||||
}
|
||||
})
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.show();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue