diff options
author | Sai Cheemalapati <saicheems@google.com> | 2014-06-10 14:09:41 -0700 |
---|---|---|
committer | Sai Cheemalapati <saicheems@google.com> | 2014-06-10 14:09:41 -0700 |
commit | dfdcdbdf96b31ac529e907e54e4f1b10b9e01179 (patch) | |
tree | 84cc393ce9f698324c6a95f2249ffed1b7d43721 /InCallUI/src/com/android/incallui/InCallActivity.java | |
parent | 84f65e98fe4f731dc2529952e7d8478258ddcfe3 (diff) |
Dialpad save on orientation change in InCallUI.
Dialpad now saves and restores entered text after
an orientation change.
Change-Id: I2616a9eeb60823a247fb3ded09f658bf3559b0df
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallActivity.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java index b37bdcbd8..f6e485b4c 100644 --- a/InCallUI/src/com/android/incallui/InCallActivity.java +++ b/InCallUI/src/com/android/incallui/InCallActivity.java @@ -44,6 +44,7 @@ import com.android.incallui.Call.State; public class InCallActivity extends Activity { public static final String SHOW_DIALPAD_EXTRA = "InCallActivity.show_dialpad"; + public static final String DIALPAD_TEXT_EXTRA = "InCallActivity.dialpad_text"; public static final String NEW_OUTGOING_CALL = "InCallActivity.new_outgoing_call"; private static final int INVALID_RES_ID = -1; @@ -112,6 +113,7 @@ public class InCallActivity extends Activity { if (icicle.getBoolean(SHOW_DIALPAD_EXTRA)) { mCallButtonFragment.displayDialpad(true /* show */, false /* animate */); } + mDialpadFragment.setDtmfText(icicle.getString(DIALPAD_TEXT_EXTRA)); } Log.d(this, "onCreate(): exit"); } @@ -119,6 +121,7 @@ public class InCallActivity extends Activity { @Override protected void onSaveInstanceState(Bundle out) { out.putBoolean(SHOW_DIALPAD_EXTRA, mCallButtonFragment.isDialpadVisible()); + out.putString(DIALPAD_TEXT_EXTRA, mDialpadFragment.getDtmfText()); } @Override |