diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2014-03-27 16:17:18 +0800 |
---|---|---|
committer | emancebo <emancebo@cyngn.com> | 2014-09-02 15:42:29 -0700 |
commit | 0163a003a082fee9c05bd300d08a843ef023febc (patch) | |
tree | a3a5812a43574fa2cb1d1dfbbdcf2eea99709a76 | |
parent | 6ba781d4d17de1556ef2b388d06e3a4a8bb684e7 (diff) | |
download | packages_apps_InCallUI-0163a003a082fee9c05bd300d08a843ef023febc.tar.gz packages_apps_InCallUI-0163a003a082fee9c05bd300d08a843ef023febc.tar.bz2 packages_apps_InCallUI-0163a003a082fee9c05bd300d08a843ef023febc.zip |
InCallUI: Set system bar enabled when InCallScreen goto background
During an incomming call and InCallScreen goto background,
the system bar is still disabled.
Set system bar enabled when InCallScreen goto background.
CRs-Fixed: 637132
Conflicts:
src/com/android/incallui/InCallActivity.java
Change-Id: Iaf2af6f392ac0096521783cd4febca6c3003635d
-rw-r--r-- | src/com/android/incallui/InCallActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/incallui/InCallActivity.java b/src/com/android/incallui/InCallActivity.java index 9e14cee5..db3ee5ce 100644 --- a/src/com/android/incallui/InCallActivity.java +++ b/src/com/android/incallui/InCallActivity.java @@ -182,6 +182,11 @@ public class InCallActivity extends Activity { registerReceiver(mLidStateChangeReceiver, new IntentFilter( WindowManagerPolicy.ACTION_LID_STATE_CHANGED)); } + + final Call call = CallList.getInstance().getIncomingCall(); + if (call != null) { + CallCommandClient.getInstance().setSystemBarNavigationEnabled(false); + } } // onPause is guaranteed to be called when the InCallActivity goes @@ -199,6 +204,8 @@ public class InCallActivity extends Activity { mDialpadFragment.onDialerKeyUp(null); InCallPresenter.getInstance().onUiShowing(false); + + CallCommandClient.getInstance().setSystemBarNavigationEnabled(true); } @Override |