Added OAuth fragment

This commit is contained in:
M66B
2019-12-21 12:06:21 +01:00
parent 7853b1cdcc
commit 0e6be5b8c9
5 changed files with 666 additions and 350 deletions

View File

@@ -183,11 +183,6 @@ public class FragmentSetup extends FragmentBase {
@Override
public boolean onMenuItemClick(MenuItem item) {
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(getContext());
if (item.getIntent() != null) {
lbm.sendBroadcast(item.getIntent());
return true;
}
switch (item.getItemId()) {
case R.string.title_setup_gmail:
if (Helper.hasValidFingerprint(getContext()))
@@ -202,7 +197,12 @@ public class FragmentSetup extends FragmentBase {
lbm.sendBroadcast(new Intent(ActivitySetup.ACTION_QUICK_SETUP));
return true;
default:
return false;
if (item.getIntent() == null)
return false;
else {
lbm.sendBroadcast(item.getIntent());
return true;
}
}
}
});