We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c8c4ced + fb5f1bc commit 93563d2Copy full SHA for 93563d2
policy/src/com/android/internal/policy/impl/PhoneWindow.java
@@ -1630,7 +1630,12 @@ public void restoreHierarchyState(Bundle savedInstanceState) {
1630
if (mActionBar != null) {
1631
SparseArray<Parcelable> actionBarStates =
1632
savedInstanceState.getSparseParcelableArray(ACTION_BAR_TAG);
1633
- mActionBar.restoreHierarchyState(actionBarStates);
+ if (actionBarStates != null) {
1634
+ mActionBar.restoreHierarchyState(actionBarStates);
1635
+ } else {
1636
+ Log.w(TAG, "Missing saved instance states for action bar views! " +
1637
+ "State will not be restored.");
1638
+ }
1639
}
1640
1641
0 commit comments