John Ernest Guadalupe
John Ernest Guadalupe

Reputation: 6629

Why does android go to onDestroy() after enabling large text in accessibility?

But after going to onDestroy(), it would still go through onCreate(), onStart() and onResume(), by then though, some texts are missing and images are gone.

Upvotes: 0

Views: 59

Answers (1)

Kai
Kai

Reputation: 15476

The Android system doesn't magically enlarge all applicable TextViews and custom views with text when you modify large text setting in accessibility. Instead it recreate the application with a new Configuration. If you are experiencing data loss afterwards, it means you should study Android Activity lifecycle some more.

There are all kinds of situations where an Activity would be destroyed & recreated by the Android OS, so you should really understand it to create a well-behaving app.

Upvotes: 2

Related Questions