Loading src/com/android/settings/notification/history/NotificationHistoryAdapter.java +7 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,8 @@ public class NotificationHistoryAdapter extends public boolean performAccessibilityAction(View host, int action, Bundle args) { super.performAccessibilityAction(host, action, args); if (action == AccessibilityNodeInfo.AccessibilityAction.ACTION_DISMISS.getId()) { onItemSwipeDeleted(position); int currPosition = mValues.indexOf(hn); onItemSwipeDeleted(currPosition); return true; } return false; Loading @@ -119,6 +120,11 @@ public class NotificationHistoryAdapter extends @Override public void onItemSwipeDeleted(int position) { if (position > (mValues.size() - 1)) { Slog.d(TAG, "Tried to swipe element out of list: position: " + position + " size? " + mValues.size()); return; } HistoricalNotification hn = mValues.remove(position); if (hn != null) { try { Loading Loading
src/com/android/settings/notification/history/NotificationHistoryAdapter.java +7 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,8 @@ public class NotificationHistoryAdapter extends public boolean performAccessibilityAction(View host, int action, Bundle args) { super.performAccessibilityAction(host, action, args); if (action == AccessibilityNodeInfo.AccessibilityAction.ACTION_DISMISS.getId()) { onItemSwipeDeleted(position); int currPosition = mValues.indexOf(hn); onItemSwipeDeleted(currPosition); return true; } return false; Loading @@ -119,6 +120,11 @@ public class NotificationHistoryAdapter extends @Override public void onItemSwipeDeleted(int position) { if (position > (mValues.size() - 1)) { Slog.d(TAG, "Tried to swipe element out of list: position: " + position + " size? " + mValues.size()); return; } HistoricalNotification hn = mValues.remove(position); if (hn != null) { try { Loading