@ -171,7 +171,6 @@ public class FragmentSetup extends FragmentBase {
popupMenu . getMenu ( ) . add ( Menu . NONE , R . string . title_setup_gmail , order + + , R . string . title_setup_gmail ) ;
popupMenu . getMenu ( ) . add ( Menu . NONE , R . string . title_setup_gmail , order + + , R . string . title_setup_gmail ) ;
popupMenu . getMenu ( ) . add ( Menu . NONE , R . string . title_setup_outlook , order + + , R . string . title_setup_outlook ) ;
popupMenu . getMenu ( ) . add ( Menu . NONE , R . string . title_setup_outlook , order + + , R . string . title_setup_outlook ) ;
if ( Helper . hasValidFingerprint ( getContext ( ) ) | | BuildConfig . DEBUG )
for ( EmailProvider provider : EmailProvider . loadProfiles ( getContext ( ) ) )
for ( EmailProvider provider : EmailProvider . loadProfiles ( getContext ( ) ) )
if ( provider . oauth ! = null & & provider . oauth . enabled )
if ( provider . oauth ! = null & & provider . oauth . enabled )
popupMenu . getMenu ( )
popupMenu . getMenu ( )
@ -206,7 +205,10 @@ public class FragmentSetup extends FragmentBase {
if ( item . getIntent ( ) = = null )
if ( item . getIntent ( ) = = null )
return false ;
return false ;
else {
else {
if ( Helper . hasValidFingerprint ( getContext ( ) ) | | BuildConfig . DEBUG )
lbm . sendBroadcast ( item . getIntent ( ) ) ;
lbm . sendBroadcast ( item . getIntent ( ) ) ;
else
ToastEx . makeText ( getContext ( ) , R . string . title_setup_oauth_permission , Toast . LENGTH_LONG ) . show ( ) ;
return true ;
return true ;
}
}
}
}