codenameakshay / async_wallpaper

https://pub.dev/packages/async_wallpaper
MIT License
23 stars 19 forks source link

App restarts when wallpaper is applied [Android 12+] #9

Closed Amit9071 closed 2 years ago

Amit9071 commented 2 years ago

app reopen after updating wallpaper android 12

codenameakshay commented 2 years ago

This is due to Material You config changes which happen in stock Android 12. There are already some open issues on Google Bug Tracker. And this is an OS issue and not an issue with this package.

Some links for reference -

See issue #7 for more details. Will be closing this issue.

Amit9071 commented 2 years ago

Yes i guess might be happened due to os. But can we fix that?

On Sun, Aug 7, 2022, 9:08 PM Akshay Maurya @.***> wrote:

Closed #9 https://github.com/codenameakshay/async_wallpaper/issues/9 as completed.

— Reply to this email directly, view it on GitHub https://github.com/codenameakshay/async_wallpaper/issues/9#event-7142378351, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANCZ6NRMYSQ6OZNANTC437TVX7J7LANCNFSM552QRBQQ . You are receiving this because you authored the thread.Message ID: @.***>

codenameakshay commented 2 years ago

Yes i guess might be happened due to os. But can we fix that?

On Sun, Aug 7, 2022, 9:08 PM Akshay Maurya @.***> wrote:

Closed #9 https://github.com/codenameakshay/async_wallpaper/issues/9 as completed.

— Reply to this email directly, view it on GitHub https://github.com/codenameakshay/async_wallpaper/issues/9#event-7142378351, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANCZ6NRMYSQ6OZNANTC437TVX7J7LANCNFSM552QRBQQ . You are receiving this because you authored the thread.Message ID: @.***>

As I mentioned, this issue is still open with Google, and you cannot stop the activity restart as it is a non-traditional config change. Please refer to the links to know more.

codenameakshay commented 2 weeks ago

You can maintain state in your app by using RestorationManager in Flutter.

Example app code changes - #47