|
|
|
@ -112,14 +112,13 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
private boolean searching = false;
|
|
|
|
|
|
|
|
|
|
static final int REQUEST_UNIFIED = 1;
|
|
|
|
|
static final int REQUEST_FOLDER = 2;
|
|
|
|
|
static final int REQUEST_WHY = 3;
|
|
|
|
|
static final int REQUEST_ALERT = 4;
|
|
|
|
|
static final int REQUEST_THREAD = 5;
|
|
|
|
|
static final int REQUEST_OUTBOX = 6;
|
|
|
|
|
static final int REQUEST_ERROR = 7;
|
|
|
|
|
static final int REQUEST_UPDATE = 8;
|
|
|
|
|
static final int REQUEST_WIDGET = 9;
|
|
|
|
|
static final int REQUEST_WHY = 2;
|
|
|
|
|
static final int REQUEST_ALERT = 3;
|
|
|
|
|
static final int REQUEST_THREAD = 4;
|
|
|
|
|
static final int REQUEST_OUTBOX = 5;
|
|
|
|
|
static final int REQUEST_ERROR = 6;
|
|
|
|
|
static final int REQUEST_UPDATE = 7;
|
|
|
|
|
static final int REQUEST_WIDGET = 8;
|
|
|
|
|
|
|
|
|
|
static final String ACTION_VIEW_FOLDERS = BuildConfig.APPLICATION_ID + ".VIEW_FOLDERS";
|
|
|
|
|
static final String ACTION_VIEW_MESSAGES = BuildConfig.APPLICATION_ID + ".VIEW_MESSAGES";
|
|
|
|
@ -319,6 +318,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
private void init() {
|
|
|
|
|
Bundle args = new Bundle();
|
|
|
|
|
|
|
|
|
|
long account = getIntent().getLongExtra("account", -1);
|
|
|
|
|
|
|
|
|
|
FragmentBase fragment;
|
|
|
|
|
switch (startup) {
|
|
|
|
|
case "accounts":
|
|
|
|
@ -327,10 +328,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
|
break;
|
|
|
|
|
case "folders":
|
|
|
|
|
fragment = new FragmentFolders();
|
|
|
|
|
args.putLong("account", account);
|
|
|
|
|
break;
|
|
|
|
|
case "primary":
|
|
|
|
|
fragment = new FragmentFolders();
|
|
|
|
|
args.putBoolean("primary", true);
|
|
|
|
|
if (account < 0)
|
|
|
|
|
args.putBoolean("primary", true);
|
|
|
|
|
else
|
|
|
|
|
args.putLong("account", account);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
fragment = new FragmentMessages();
|
|
|
|
|