Loading src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java +14 −9 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.text.TextUtils; import android.util.ArrayMap; import android.util.ArraySet; import android.util.IconDrawableFactory; import android.util.Slog; import com.android.settings.R; import com.android.settings.Utils; Loading Loading @@ -294,6 +295,7 @@ public class RecentNotifyingAppsPreferenceController extends AbstractPreferenceC List<NotifyingApp> displayableApps = new ArrayList<>(SHOW_RECENT_APP_COUNT); int count = 0; for (NotifyingApp app : mApps) { try { final ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry( app.getPackage(), app.getUserId()); if (appEntry == null) { Loading @@ -304,6 +306,9 @@ public class RecentNotifyingAppsPreferenceController extends AbstractPreferenceC if (count >= SHOW_RECENT_APP_COUNT) { break; } } catch (Exception e) { Slog.e(TAG, "Failed to find app " + app.getPackage() + "/" + app.getUserId(), e); } } return displayableApps; } Loading Loading
src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java +14 −9 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.text.TextUtils; import android.util.ArrayMap; import android.util.ArraySet; import android.util.IconDrawableFactory; import android.util.Slog; import com.android.settings.R; import com.android.settings.Utils; Loading Loading @@ -294,6 +295,7 @@ public class RecentNotifyingAppsPreferenceController extends AbstractPreferenceC List<NotifyingApp> displayableApps = new ArrayList<>(SHOW_RECENT_APP_COUNT); int count = 0; for (NotifyingApp app : mApps) { try { final ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry( app.getPackage(), app.getUserId()); if (appEntry == null) { Loading @@ -304,6 +306,9 @@ public class RecentNotifyingAppsPreferenceController extends AbstractPreferenceC if (count >= SHOW_RECENT_APP_COUNT) { break; } } catch (Exception e) { Slog.e(TAG, "Failed to find app " + app.getPackage() + "/" + app.getUserId(), e); } } return displayableApps; } Loading