Fix Java crash problem

- Add super.onRestoreInstanceState to fix
  "the Derived class did not call super.onRestoreInstanceState()"
  problem.

Fixes: 286482228
Test: manual test
Change-Id: I0a6b0f210835d4588151dfbd9792846e096f2655
This commit is contained in:
Sunny Shao
2023-08-10 15:34:16 +08:00
parent eeba25e2f3
commit 4d7f7172a9

View File

@@ -84,6 +84,7 @@ public class SpinnerPreference extends Preference {
return;
}
if (!(state instanceof SavedState)) {
super.onRestoreInstanceState(state);
return;
}
SavedState savedState = (SavedState) state;