Fixed widget folder

pull/184/head
M66B 4 years ago
parent a540c33397
commit bc443f39a5

@ -1037,9 +1037,9 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
onViewThread(intent);
} else if (action.equals("widget")) {
long account = intent.getLongExtra("account", -1);
long folder = intent.getLongExtra("folder", -1);
String type = intent.getStringExtra("type");
long account = intent.getLongExtra("widget_account", -1);
long folder = intent.getLongExtra("widget_folder", -1);
String type = intent.getStringExtra("widget_type");
if (account > 0 && folder > 0 && !TextUtils.isEmpty(type)) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) {
getSupportFragmentManager().popBackStack("messages", FragmentManager.POP_BACK_STACK_INCLUSIVE);

@ -89,9 +89,9 @@ public class WidgetUnified extends AppWidgetProvider {
Intent thread = new Intent(context, ActivityView.class);
thread.setAction("widget");
thread.putExtra("account", account);
thread.putExtra("folder", folder);
thread.putExtra("type", type);
thread.putExtra("widget_account", account);
thread.putExtra("widget_folder", folder);
thread.putExtra("widget_type", type);
thread.putExtra("filter_archive", !EntityFolder.ARCHIVE.equals(type));
thread.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent piItem = PendingIntent.getActivity(

Loading…
Cancel
Save