Closed codeall9 closed 1 month ago
Fixes #1346
_prefTitle is saved in the bundle as CharSequence
_prefTitle
CharSequence
we only able to store CharSequence since Preference.getTitleRes is removed in AndroidX.
Preference.getTitleRes
As a workaround, we update the title again on Fragment.onStart()
https://github.com/beemdevelopment/Aegis/assets/11408319/b929ddf9-b8fb-4ce2-89cf-25ac2b433491
Fixes #1346
Root cause:
_prefTitle
is saved in the bundle asCharSequence
Solution:
we only able to store
CharSequence
sincePreference.getTitleRes
is removed in AndroidX.As a workaround, we update the title again on Fragment.onStart()
Demo
https://github.com/beemdevelopment/Aegis/assets/11408319/b929ddf9-b8fb-4ce2-89cf-25ac2b433491