diff options
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardFragment.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index aa91cb50a..99adcccbd 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -88,6 +88,8 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr } }; + private static final String IS_DIALPAD_SHOWING_KEY = "is_dialpad_showing"; + /** * The duration of time (in milliseconds) a call state label should remain visible before * resetting to its previous value. @@ -189,6 +191,10 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr R.dimen.end_call_floating_action_button_diameter); mFabSmallDiameter = getResources().getDimensionPixelOffset( R.dimen.end_call_floating_action_button_small_diameter); + + if (savedInstanceState != null) { + mIsDialpadShowing = savedInstanceState.getBoolean(IS_DIALPAD_SHOWING_KEY, false); + } } @Override @@ -201,6 +207,12 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr } @Override + public void onSaveInstanceState(Bundle outState) { + outState.putBoolean(IS_DIALPAD_SHOWING_KEY, mIsDialpadShowing); + super.onSaveInstanceState(outState); + } + + @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Trace.beginSection(TAG + " onCreate"); |