Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9660bdf authored by Christoph Studer's avatar Christoph Studer Committed by Android (Google) Code Review
Browse files

Merge "RankingHelper: Remove STOPSHIP" into lmp-mr1-dev

parents 7e168ad0 85374052
Loading
Loading
Loading
Loading
+2 −17
Original line number Diff line number Diff line
@@ -227,23 +227,8 @@ public class RankingHelper implements RankingConfig {
            notificationList.get(i).setGlobalSortKey(null);
        }

        try {
        // rank each record individually
        Collections.sort(notificationList, mPreliminaryComparator);
        } catch (RuntimeException ex) {
            // Don't crash the system server if something bad happened.
            Log.e(TAG, "Extreme badness during notification sort", ex);
            Log.e(TAG, "Current notification list: ");
            for (int i = 0; i < N; i++) {
                NotificationRecord nr = notificationList.get(i);
                Log.e(TAG, String.format(
                        "  [%d] %s (group %s, rank %d, sortkey %s)",
                        i, nr, nr.getGroupKey(), nr.getAuthoritativeRank(),
                        nr.getNotification().getSortKey()));
            }
            // STOPSHIP: remove once b/16626175 is found
            throw ex;
        }

        synchronized (mProxyByGroupTmp) {
            // record individual ranking result and nominate proxies for each group