Skip to content

Commit fc6fda3

Browse files
committed
Fix fullScreenIntents.
The intruder alert stuff was getting activated, but it's not really ready yet. Bug: 6070420 Change-Id: If65165e96bddf1e5e4c89ed26131e45639d5cf2d
1 parent 3f0c58e commit fc6fda3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ public class PhoneStatusBar extends StatusBar {
102102
public static final String ACTION_STATUSBAR_START
103103
= "com.android.internal.policy.statusbar.START";
104104

105+
private static final boolean ENABLE_INTRUDERS = false;
106+
105107
static final int EXPANDED_LEAVE_ALONE = -10000;
106108
static final int EXPANDED_FULL_OPEN = -10001;
107109

@@ -268,7 +270,7 @@ public void start() {
268270

269271
addNavigationBar();
270272

271-
//addIntruderView();
273+
if (ENABLE_INTRUDERS) addIntruderView();
272274

273275
// Lastly, call to the icon policy to install/update all the icons.
274276
mIconPolicy = new PhoneStatusBarPolicy(mContext);
@@ -557,8 +559,9 @@ public void addNotification(IBinder key, StatusBarNotification notification) {
557559
}
558560
} catch (RemoteException ex) {
559561
}
560-
if ((notification.score >= mIntruderInImmersiveMinScore)
561-
|| (!immersive && (notification.score > mIntruderMinScore))) {
562+
if (ENABLE_INTRUDERS && (
563+
(notification.score >= mIntruderInImmersiveMinScore)
564+
|| (!immersive && (notification.score > mIntruderMinScore)))) {
562565
Slog.d(TAG, "Presenting high-priority notification");
563566
// special new transient ticker mode
564567
// 1. Populate mIntruderAlertView

0 commit comments

Comments
 (0)