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

Commit 1f09eb73 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Provide default no-op implementation in PackageListObserver"

parents fb9c41f1 53bc97e0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -112,11 +112,11 @@ public abstract class PackageManagerInternal {
    /** Observer called whenever the list of packages changes */
    public interface PackageListObserver {
        /** A package was added to the system. */
        void onPackageAdded(@NonNull String packageName, int uid);
        default void onPackageAdded(@NonNull String packageName, int uid) {}
        /** A package was changed - either installed for a specific user or updated. */
        default void onPackageChanged(@NonNull String packageName, int uid) {}
        /** A package was removed from the system. */
        void onPackageRemoved(@NonNull String packageName, int uid);
        default void onPackageRemoved(@NonNull String packageName, int uid) {}
    }

    /**