summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorRekha Kumar <rekhak@codeaurora.org>2015-12-07 23:04:54 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-12-07 23:04:54 +0000
commit00f2bebbf90473aa946b6d803a79aaf3c611249d (patch)
treeff8894ffbca660f8c4f0fa7d50344f66f173ba41 /InCallUI
parentcac542abb894522d183f5cb6cdc33589198b9fec (diff)
parenta62dc2266449adc677ddc7c8141e615f95e3652c (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.java14
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();
}