Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
fixes app crash when configuring quick settings tiles; `FLAG_ACTIVITY_NEW_TASK` is required to start an activity from a non-activity context, now enforced for targetApi api28+.

https://developer.android.com/about/versions/pie/android-9.0-changes-all#fant-required
  • Loading branch information
forrestguice committed Oct 28, 2024
1 parent 4500840 commit e849e0e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ protected Intent getConfigIntent(Context context)
if (configClass != null)
{
Intent intent = new Intent(context, getConfigActivityClass(context));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId());
intent.putExtra(ClockWidget0ConfigActivity.EXTRA_RECONFIGURE, true);
return intent;
Expand Down

0 comments on commit e849e0e

Please sign in to comment.