From fad3d877092cf18788be134ead9365add65f507d Mon Sep 17 00:00:00 2001 From: wangqi Date: Wed, 25 Oct 2017 13:15:23 -0700 Subject: Fix crash that isInMultiWindownMode is not supported on M. Bug: 68143529 Test: none PiperOrigin-RevId: 173439449 Change-Id: I80ebb4e8b17551144e492424e7aa6d92f26cc576 --- java/com/android/incallui/InCallActivityCommon.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java') 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) { -- cgit v1.2.3