mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Open folder from widget
This commit is contained in:
@@ -104,12 +104,13 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
private boolean searching = false;
|
||||
|
||||
static final int REQUEST_UNIFIED = 1;
|
||||
static final int REQUEST_WHY = 2;
|
||||
static final int REQUEST_THREAD = 3;
|
||||
static final int REQUEST_OUTBOX = 4;
|
||||
static final int REQUEST_ERROR = 5;
|
||||
static final int REQUEST_UPDATE = 6;
|
||||
static final int REQUEST_WIDGET = 7;
|
||||
static final int REQUEST_FOLDER = 2;
|
||||
static final int REQUEST_WHY = 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";
|
||||
@@ -791,6 +792,16 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
startService(clear);
|
||||
}
|
||||
|
||||
} else if (action.startsWith("folder")) {
|
||||
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
getSupportFragmentManager().popBackStack("unified", 0);
|
||||
|
||||
long folder = Long.parseLong(action.split(":", 2)[1]);
|
||||
if (folder > 0) {
|
||||
intent.putExtra("folder", folder);
|
||||
onViewMessages(intent);
|
||||
}
|
||||
|
||||
} else if ("why".equals(action)) {
|
||||
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
getSupportFragmentManager().popBackStack("unified", 0);
|
||||
|
||||
Reference in New Issue
Block a user