diff options
author | Rekha Kumar <rekhak@codeaurora.org> | 2015-12-07 23:04:54 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-12-07 23:04:54 +0000 |
commit | 00f2bebbf90473aa946b6d803a79aaf3c611249d (patch) | |
tree | ff8894ffbca660f8c4f0fa7d50344f66f173ba41 /InCallUI | |
parent | cac542abb894522d183f5cb6cdc33589198b9fec (diff) | |
parent | a62dc2266449adc677ddc7c8141e615f95e3652c (diff) |
IMS-VT: Fix null pointer exception
am: fd49225529
* commit 'fd492255293a8b4d668b0a45602fc3f3695dc94f':
IMS-VT: Fix null pointer exception
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java index 3dc2c9daf..714db0977 100644 --- a/InCallUI/src/com/android/incallui/InCallActivity.java +++ b/InCallUI/src/com/android/incallui/InCallActivity.java @@ -142,11 +142,6 @@ public class InCallActivity extends TransactionSafeActivity implements FragmentD } }; - /** - * Listener for orientation changes. - */ - private OrientationEventListener mOrientationEventListener; - @Override protected void onCreate(Bundle icicle) { Log.d(this, "onCreate()... this = " + this); @@ -235,14 +230,6 @@ public class InCallActivity extends TransactionSafeActivity implements FragmentD Log.d(this, "onStart()..."); super.onStart(); - if (mOrientationEventListener.canDetectOrientation()) { - Log.v(this, "Orientation detection enabled."); - mOrientationEventListener.enable(); - } else { - Log.v(this, "Orientation detection disabled."); - mOrientationEventListener.disable(); - } - // setting activity should be last thing in setup process InCallPresenter.getInstance().setActivity(this); enableInCallOrientationEventListener(getRequestedOrientation() == @@ -298,7 +285,6 @@ public class InCallActivity extends TransactionSafeActivity implements FragmentD enableInCallOrientationEventListener(false); InCallPresenter.getInstance().updateIsChangingConfigurations(); InCallPresenter.getInstance().onActivityStopped(); - mOrientationEventListener.disable(); super.onStop(); } |