Monday, 1 November 2021

Android 12: How to prevent activity restart on changing phone wallpaper?

On Android 12,

  1. If we open an activity

  2. Go to the home screen of the phone to change the wallpaper

  3. Switch back to our activity, the activity restarts.

It seems it is related to the Material You theming.

I would like to disable the restarting of activity when my app comes to the foreground. Is there a way?



from Android 12: How to prevent activity restart on changing phone wallpaper?

No comments:

Post a Comment