Skip to content

Commit f747128

Browse files
committed
Revet "[3/3] InCallUI: allow disabling non intrusive incall ui"
1 parent c4fb09f commit f747128

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/com/android/incallui/InCallPresenter.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
import com.google.common.base.Preconditions;
2828

2929
import android.content.Context;
30-
import android.content.ContentResolver;
3130
import android.content.Intent;
32-
import android.provider.Settings;
3331
import android.os.PowerManager;
3432
import android.os.RemoteException;
3533
import android.os.ServiceManager;
@@ -835,12 +833,9 @@ private void startUi(InCallState inCallState) {
835833
mCallUiInBackground = pm.isScreenOn() && !isKeyguardShowing;
836834
}
837835

838-
boolean nonIntrusiveDisabled = Settings.System.getInt(mContext.getContentResolver(),
839-
Settings.System.NON_INTRUSIVE_INCALL, 1) == 0;
840-
841836
final PowerManager pm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
842837
// If the screen is on, we'll prefer to not interrupt the user too much and slide in a card
843-
if (pm.isScreenOn() && !nonIntrusiveDisabled) {
838+
if (pm.isScreenOn()) {
844839
Intent intent = new Intent(mContext, InCallCardActivity.class);
845840
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
846841
mContext.startActivity(intent);

0 commit comments

Comments
 (0)