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

Commit 02d93b84 authored by Jakob Schneider's avatar Jakob Schneider Committed by Android (Google) Code Review
Browse files

Merge "Refactor API syntax based on API council feedback. This is a noop." into main

parents b3e03b54 94b5f170
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 =