summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorwangqi <wangqi@google.com>2017-10-25 13:15:23 -0700
committerEric Erfanian <erfanian@google.com>2017-10-25 13:40:34 -0700
commitfad3d877092cf18788be134ead9365add65f507d (patch)
tree42818e6e3276e3a80e32ba21c402ea83e33877ee /java
parentca475479749bd21f1e2a9a7f2f394987dc8550c3 (diff)
Fix crash that isInMultiWindownMode is not supported on M.
Bug: 68143529 Test: none PiperOrigin-RevId: 173439449 Change-Id: I80ebb4e8b17551144e492424e7aa6d92f26cc576
Diffstat (limited to 'java')
-rw-r--r--java/com/android/incallui/InCallActivityCommon.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/android/incallui/InCallActivityCommon.java b/java/com/android/incallui/InCallActivityCommon.java
index d39ce22b0..a9702b447 100644
--- a/java/com/android/incallui/InCallActivityCommon.java
+++ b/java/com/android/incallui/InCallActivityCommon.java
@@ -51,6 +51,7 @@ import com.android.contacts.common.widget.SelectPhoneAccountDialogFragment.Selec
import com.android.dialer.animation.AnimUtils;
import com.android.dialer.animation.AnimationListenerAdapter;
import com.android.dialer.common.LogUtil;
+import com.android.dialer.compat.ActivityCompat;
import com.android.dialer.compat.CompatUtils;
import com.android.dialer.logging.Logger;
import com.android.dialer.logging.ScreenEvent;
@@ -714,7 +715,7 @@ public class InCallActivityCommon {
}
void updateNavigationBar(boolean isDialpadVisible) {
- if (!inCallActivity.isInMultiWindowMode()) {
+ if (!ActivityCompat.isInMultiWindowMode(inCallActivity)) {
View navigationBarBackground =
inCallActivity.getWindow().findViewById(R.id.navigation_bar_background);
if (navigationBarBackground != null) {