Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/StackScrollAlgorithm.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -401,6 +401,7 @@ public class StackScrollAlgorithm { public boolean isCyclingOut(ExpandableNotificationRow row, AmbientState ambientState) { public boolean isCyclingOut(ExpandableNotificationRow row, AmbientState ambientState) { if (!NotificationHeadsUpCycling.isEnabled()) return false; if (!NotificationHeadsUpCycling.isEnabled()) return false; if (row.getEntry() == null) return false; if (row.getEntry() == null) return false; if (row.getEntry().getKey() == null) return false; String cyclingOutKey = ambientState.getAvalanchePreviousHunKey(); String cyclingOutKey = ambientState.getAvalanchePreviousHunKey(); return row.getEntry().getKey().equals(cyclingOutKey); return row.getEntry().getKey().equals(cyclingOutKey); } } Loading @@ -411,6 +412,7 @@ public class StackScrollAlgorithm { public boolean isCyclingIn(ExpandableNotificationRow row, AmbientState ambientState) { public boolean isCyclingIn(ExpandableNotificationRow row, AmbientState ambientState) { if (!NotificationHeadsUpCycling.isEnabled()) return false; if (!NotificationHeadsUpCycling.isEnabled()) return false; if (row.getEntry() == null) return false; if (row.getEntry() == null) return false; if (row.getEntry().getKey() == null) return false; String cyclingInKey = ambientState.getAvalancheShowingHunKey(); String cyclingInKey = ambientState.getAvalancheShowingHunKey(); return row.getEntry().getKey().equals(cyclingInKey); return row.getEntry().getKey().equals(cyclingInKey); } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/StackScrollAlgorithm.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -401,6 +401,7 @@ public class StackScrollAlgorithm { public boolean isCyclingOut(ExpandableNotificationRow row, AmbientState ambientState) { public boolean isCyclingOut(ExpandableNotificationRow row, AmbientState ambientState) { if (!NotificationHeadsUpCycling.isEnabled()) return false; if (!NotificationHeadsUpCycling.isEnabled()) return false; if (row.getEntry() == null) return false; if (row.getEntry() == null) return false; if (row.getEntry().getKey() == null) return false; String cyclingOutKey = ambientState.getAvalanchePreviousHunKey(); String cyclingOutKey = ambientState.getAvalanchePreviousHunKey(); return row.getEntry().getKey().equals(cyclingOutKey); return row.getEntry().getKey().equals(cyclingOutKey); } } Loading @@ -411,6 +412,7 @@ public class StackScrollAlgorithm { public boolean isCyclingIn(ExpandableNotificationRow row, AmbientState ambientState) { public boolean isCyclingIn(ExpandableNotificationRow row, AmbientState ambientState) { if (!NotificationHeadsUpCycling.isEnabled()) return false; if (!NotificationHeadsUpCycling.isEnabled()) return false; if (row.getEntry() == null) return false; if (row.getEntry() == null) return false; if (row.getEntry().getKey() == null) return false; String cyclingInKey = ambientState.getAvalancheShowingHunKey(); String cyclingInKey = ambientState.getAvalancheShowingHunKey(); return row.getEntry().getKey().equals(cyclingInKey); return row.getEntry().getKey().equals(cyclingInKey); } } Loading