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

Commit 94b5f170 authored by Jakob Schneider's avatar Jakob Schneider
Browse files

Refactor API syntax based on API council feedback. This is a noop.

Bug: 322010040
Test: LauncherAppsTest
Flag: ACONFIG com.android.launcher3.enable_support_for_archiving DEVELOPMENT

Change-Id: I60c45654badd85c5e62d994ee012927a0425285a
parent 2f609d09
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.content.pm.LauncherApps;
import android.content.pm.LauncherApps.ArchiveCompatibilityParams;
import android.os.UserHandle;
import android.util.Log;

@@ -109,8 +110,9 @@ public class LauncherAppState implements SafeCloseable {
        mOnTerminateCallback.add(() ->
                mContext.getSystemService(LauncherApps.class).unregisterCallback(callbacks));
        if (Flags.enableSupportForArchiving()) {
            launcherApps.setArchiveCompatibilityOptions(/* enableIconOverlay= */ true,
                    /* enableUnarchivalConfirmation= */ false);
            ArchiveCompatibilityParams params = new ArchiveCompatibilityParams();
            params.setEnableUnarchivalConfirmation(false);
            launcherApps.setArchiveCompatibility(params);
        }

        SimpleBroadcastReceiver modelChangeReceiver =