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

Commit 2c4f809a authored by Valentin Iftime's avatar Valentin Iftime
Browse files

Use actual GroupHelper in NotificationManagerServiceTest

 Remove mocked GroupHelper from NotificationManagerServiceTest: use actual implementation.

Flag: EXEMPT bugfix

Test: atest NotificationManagerServiceTest

Bug: 358074581
Change-Id: I0a231e65a919f38ac9061f30fb6b58b0c22305f6
parent 86df2af5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -669,7 +669,8 @@ public class NotificationManagerService extends SystemService {
    static final long NOTIFICATION_MAX_AGE_AT_POST = Duration.ofDays(14).toMillis();
    // Minium number of sparse groups for a package before autogrouping them
    private static final int AUTOGROUP_SPARSE_GROUPS_AT_COUNT = 6;
    @VisibleForTesting
    static final int AUTOGROUP_SPARSE_GROUPS_AT_COUNT = 6;
    // Minimum number notifications in a bundle section before autogrouping them
    private static final int AUTOGROUP_BUNDLE_SECTIONS_AT_COUNT = 1;
@@ -3282,7 +3283,8 @@ public class NotificationManagerService extends SystemService {
        return StatsManager.PULL_SUCCESS;
    }
    private GroupHelper getGroupHelper() {
    @VisibleForTesting
    protected GroupHelper getGroupHelper() {
        mAutoGroupAtCount =
                getContext().getResources().getInteger(R.integer.config_autoGroupAtCount);
        return new GroupHelper(getContext(), getContext().getPackageManager(),
+150 −179

File changed.

Preview size limit exceeded, changes collapsed.