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

Commit d9841fb6 authored by wilsonshih's avatar wilsonshih Committed by Wei Sheng Shih
Browse files

Fix attr inheritShowWhenLocked cannot read from manifest.

Move the declaration to correct location.

Fix: 123247611
Test: atest KeyguardTests

Change-Id: Ic7ae88a2aad982d3e75b398d6e0d8a46970ac8c0
parent 46887e58
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -508,7 +508,7 @@ public class ActivityInfo extends ComponentInfo implements Parcelable {
    /**
     * Bit in {@link #privateFlags} indicating if the activity should be shown when locked in case
     * an activity behind this can also be shown when locked.
     * See android.R.attr#inheritShowWhenLocked
     * See {@link android.R.attr#inheritShowWhenLocked}.
     * @hide
     */
    public static final int FLAG_INHERIT_SHOW_WHEN_LOCKED = 0x1;
+11 −12
Original line number Diff line number Diff line
@@ -950,6 +950,17 @@
         <p>The default value of this attribute is <code>false</code>. -->
    <attr name="allowEmbedded" format="boolean" />

    <!-- @hide @SystemApi Specifies whether this {@link android.app.Activity} should be shown on
         top of the lock screen whenever the lockscreen is up and this activity has another
         activity behind it with the {@link android.R.attr#showWhenLocked} attribute set. That
         is, this activity is only visible on the lock screen if there is another activity with
         the {@link android.R.attr#showWhenLocked} attribute visible at the same time on the
         lock screen. A use case for this is permission dialogs, that should only be visible on
         the lock screen if their requesting activity is also visible.

         <p>The default value of this attribute is <code>false</code>. -->
    <attr name="inheritShowWhenLocked" format="boolean" />

    <!-- Descriptive text for the associated data. -->
    <attr name="description" format="reference" />

@@ -2415,18 +2426,6 @@
        <attr name="showForAllUsers" />

        <attr name="showWhenLocked" />
        <!-- @hide @SystemApi Specifies whether this {@link android.app.Activity} should be shown on
             top of the lock screen whenever the lockscreen is up and this activity has another
             activity behind it with the {@link android.R.attr#showWhenLocked} attribute set. That
             is, this activity is only visible on the lock screen if there is another activity with
             the {@link android.R.attr#showWhenLocked} attribute visible at the same time on the
             lock screen. A use case for this is permission dialogs, that should only be visible on
             the lock screen if their requesting activity is also visible.

         The default value of this attribute is <code>false</code>. -->
    <attr name="inheritShowWhenLocked" format="boolean" />


        <attr name="inheritShowWhenLocked" />
        <attr name="turnScreenOn" />