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

Commit 6f1512c6 authored by Andrei Onea's avatar Andrei Onea
Browse files

Migrate CALLBACK_ON_CLEAR_CHANGE

Use @EnabledSince instead of @EnabledAfter for CALLBACK_ON_CLEAR_CHANGE.

Test: m
Bug: 172238506
Change-Id: I74d558cbf5c572fad11329269266fab017afde8e
parent 3c3baf16
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ package android.app;
import android.annotation.Nullable;
import android.compat.Compatibility;
import android.compat.annotation.ChangeId;
import android.compat.annotation.EnabledAfter;
import android.compat.annotation.EnabledSince;
import android.compat.annotation.UnsupportedAppUsage;
import android.content.SharedPreferences;
import android.os.Build;
@@ -71,7 +71,7 @@ final class SharedPreferencesImpl implements SharedPreferences {
     * {@link android.content.SharedPreferences.Editor#clear Editor.clear}.
     */
    @ChangeId
    @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.Q)
    @EnabledSince(targetSdkVersion = Build.VERSION_CODES.R)
    private static final long CALLBACK_ON_CLEAR_CHANGE = 119147584L;

    // Lock ordering rules: