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

Commit 2a184634 authored by Diya Bera's avatar Diya Bera
Browse files

[1/N] Identity Check Promo/Notification

Add global variable to track if the user has seen the promo card or not

Bug: 419075086
Fixes: 415061423
Flag: android.hardware.biometrics.identity_check_all_surfaces
Test: N/A
Change-Id: Ib2868c27cc07836c5de805214b18b664a4b62373
parent 25fbdd63
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -20269,6 +20269,16 @@ public final class Settings {
        public static final String GLOBAL_ACTIONS_TIMEOUT_MILLIS =
        public static final String GLOBAL_ACTIONS_TIMEOUT_MILLIS =
                "global_actions_timeout_ms";
                "global_actions_timeout_ms";
        /**
         * Tracks if the user has seen the promo card for Identity Check.
         * The promo card should only appear once per device via Safety Center.
         *
         * @hide
         */
        public static final String IDENTITY_CHECK_PROMO_CARD_SHOWN =
                "identity_check_promo_card_shown";
        /**
        /**
         * Settings migrated from Wear OS settings provider.
         * Settings migrated from Wear OS settings provider.
         * @hide
         * @hide
+1 −0
Original line number Original line Diff line number Diff line
@@ -130,5 +130,6 @@ public class GlobalSettings {
        Settings.Global.REMOVE_GUEST_ON_EXIT,
        Settings.Global.REMOVE_GUEST_ON_EXIT,
        Settings.Global.USER_SWITCHER_ENABLED,
        Settings.Global.USER_SWITCHER_ENABLED,
        Settings.Global.GLOBAL_ACTIONS_TIMEOUT_MILLIS,
        Settings.Global.GLOBAL_ACTIONS_TIMEOUT_MILLIS,
        Settings.Global.IDENTITY_CHECK_PROMO_CARD_SHOWN,
    };
    };
}
}
+2 −0
Original line number Original line Diff line number Diff line
@@ -481,5 +481,7 @@ public class GlobalSettingsValidators {
        VALIDATORS.put(Global.Wearable.GESTURE_DISMISS_ACTION_USER_PREFERENCE, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Global.Wearable.GESTURE_DISMISS_ACTION_USER_PREFERENCE, BOOLEAN_VALIDATOR);
        VALIDATORS.put(Global.Wearable.GESTURE_HINT_PERIOD_DAYS, ANY_INTEGER_VALIDATOR);
        VALIDATORS.put(Global.Wearable.GESTURE_HINT_PERIOD_DAYS, ANY_INTEGER_VALIDATOR);
        VALIDATORS.put(Global.GLOBAL_ACTIONS_TIMEOUT_MILLIS, NON_NEGATIVE_INTEGER_VALIDATOR);
        VALIDATORS.put(Global.GLOBAL_ACTIONS_TIMEOUT_MILLIS, NON_NEGATIVE_INTEGER_VALIDATOR);
        VALIDATORS.put(Global.IDENTITY_CHECK_PROMO_CARD_SHOWN,
                new InclusiveIntegerRangeValidator(0, 1));
    }
    }
}
}