Merge "Fix snooze not dismissing when it should" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f113a07d9e
@@ -329,4 +329,8 @@ public class NotificationGuts extends FrameLayout {
|
|||||||
public boolean isExposed() {
|
public boolean isExposed() {
|
||||||
return mExposed;
|
return mExposed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isLeavebehind() {
|
||||||
|
return mGutsContent != null && mGutsContent.isLeavebehind();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1790,7 +1790,8 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (entry != null && mNotificationGutsExposed != null
|
if (entry != null && mNotificationGutsExposed != null
|
||||||
&& mNotificationGutsExposed == entry.row.getGuts()) {
|
&& mNotificationGutsExposed == entry.row.getGuts() && entry.row.getGuts() != null
|
||||||
|
&& !entry.row.getGuts().isLeavebehind()) {
|
||||||
Log.w(TAG, "Keeping notification because it's showing guts. " + key);
|
Log.w(TAG, "Keeping notification because it's showing guts. " + key);
|
||||||
mLatestRankingMap = ranking;
|
mLatestRankingMap = ranking;
|
||||||
mKeyToRemoveOnGutsClosed = key;
|
mKeyToRemoveOnGutsClosed = key;
|
||||||
|
|||||||
Reference in New Issue
Block a user