@ -127,6 +127,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
static final String ACTION_QUICK_GMAIL = BuildConfig . APPLICATION_ID + ".ACTION_QUICK_GMAIL" ;
static final String ACTION_QUICK_GMAIL = BuildConfig . APPLICATION_ID + ".ACTION_QUICK_GMAIL" ;
static final String ACTION_QUICK_OAUTH = BuildConfig . APPLICATION_ID + ".ACTION_QUICK_OAUTH" ;
static final String ACTION_QUICK_OAUTH = BuildConfig . APPLICATION_ID + ".ACTION_QUICK_OAUTH" ;
static final String ACTION_QUICK_SETUP = BuildConfig . APPLICATION_ID + ".ACTION_QUICK_SETUP" ;
static final String ACTION_QUICK_SETUP = BuildConfig . APPLICATION_ID + ".ACTION_QUICK_SETUP" ;
static final String ACTION_QUICK_POP3 = BuildConfig . APPLICATION_ID + ".ACTION_QUICK_POP3" ;
static final String ACTION_VIEW_ACCOUNTS = BuildConfig . APPLICATION_ID + ".ACTION_VIEW_ACCOUNTS" ;
static final String ACTION_VIEW_ACCOUNTS = BuildConfig . APPLICATION_ID + ".ACTION_VIEW_ACCOUNTS" ;
static final String ACTION_VIEW_IDENTITIES = BuildConfig . APPLICATION_ID + ".ACTION_VIEW_IDENTITIES" ;
static final String ACTION_VIEW_IDENTITIES = BuildConfig . APPLICATION_ID + ".ACTION_VIEW_IDENTITIES" ;
static final String ACTION_EDIT_ACCOUNT = BuildConfig . APPLICATION_ID + ".EDIT_ACCOUNT" ;
static final String ACTION_EDIT_ACCOUNT = BuildConfig . APPLICATION_ID + ".EDIT_ACCOUNT" ;
@ -320,6 +321,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
iff . addAction ( ACTION_QUICK_GMAIL ) ;
iff . addAction ( ACTION_QUICK_GMAIL ) ;
iff . addAction ( ACTION_QUICK_OAUTH ) ;
iff . addAction ( ACTION_QUICK_OAUTH ) ;
iff . addAction ( ACTION_QUICK_SETUP ) ;
iff . addAction ( ACTION_QUICK_SETUP ) ;
iff . addAction ( ACTION_QUICK_POP3 ) ;
iff . addAction ( ACTION_VIEW_ACCOUNTS ) ;
iff . addAction ( ACTION_VIEW_ACCOUNTS ) ;
iff . addAction ( ACTION_VIEW_IDENTITIES ) ;
iff . addAction ( ACTION_VIEW_IDENTITIES ) ;
iff . addAction ( ACTION_EDIT_ACCOUNT ) ;
iff . addAction ( ACTION_EDIT_ACCOUNT ) ;
@ -1159,12 +1161,20 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
fragmentTransaction . commit ( ) ;
fragmentTransaction . commit ( ) ;
}
}
private void on View QuickSetup( Intent intent ) {
private void on QuickSetup( Intent intent ) {
FragmentTransaction fragmentTransaction = getSupportFragmentManager ( ) . beginTransaction ( ) ;
FragmentTransaction fragmentTransaction = getSupportFragmentManager ( ) . beginTransaction ( ) ;
fragmentTransaction . replace ( R . id . content_frame , new FragmentQuickSetup ( ) ) . addToBackStack ( "quick" ) ;
fragmentTransaction . replace ( R . id . content_frame , new FragmentQuickSetup ( ) ) . addToBackStack ( "quick" ) ;
fragmentTransaction . commit ( ) ;
fragmentTransaction . commit ( ) ;
}
}
private void onQuickPop3 ( Intent intent ) {
FragmentBase fragment = new FragmentPop ( ) ;
fragment . setArguments ( new Bundle ( ) ) ;
FragmentTransaction fragmentTransaction = getSupportFragmentManager ( ) . beginTransaction ( ) ;
fragmentTransaction . replace ( R . id . content_frame , fragment ) . addToBackStack ( "account" ) ;
fragmentTransaction . commit ( ) ;
}
private void onViewAccounts ( Intent intent ) {
private void onViewAccounts ( Intent intent ) {
FragmentTransaction fragmentTransaction = getSupportFragmentManager ( ) . beginTransaction ( ) ;
FragmentTransaction fragmentTransaction = getSupportFragmentManager ( ) . beginTransaction ( ) ;
fragmentTransaction . replace ( R . id . content_frame , new FragmentAccounts ( ) ) . addToBackStack ( "accounts" ) ;
fragmentTransaction . replace ( R . id . content_frame , new FragmentAccounts ( ) ) . addToBackStack ( "accounts" ) ;
@ -1321,7 +1331,9 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
else if ( ACTION_QUICK_OAUTH . equals ( action ) )
else if ( ACTION_QUICK_OAUTH . equals ( action ) )
onOAuth ( intent ) ;
onOAuth ( intent ) ;
else if ( ACTION_QUICK_SETUP . equals ( action ) )
else if ( ACTION_QUICK_SETUP . equals ( action ) )
onViewQuickSetup ( intent ) ;
onQuickSetup ( intent ) ;
else if ( ACTION_QUICK_POP3 . equals ( action ) )
onQuickPop3 ( intent ) ;
else if ( ACTION_VIEW_ACCOUNTS . equals ( action ) )
else if ( ACTION_VIEW_ACCOUNTS . equals ( action ) )
onViewAccounts ( intent ) ;
onViewAccounts ( intent ) ;
else if ( ACTION_VIEW_IDENTITIES . equals ( action ) )
else if ( ACTION_VIEW_IDENTITIES . equals ( action ) )