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

Commit 173f573a authored by Winson's avatar Winson
Browse files

Make Resources.Theme.rebase() public API

Needed for androidx dark mode to recreate UI without triggering
lifecycle event.

Bug: 128982541

Test: none needed

Change-Id: I7d16692f074cc7e50470868a6e232e26ff9d1ed3
parent 5af72432
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12357,6 +12357,7 @@ package android.content.res {
    method @NonNull public android.content.res.TypedArray obtainStyledAttributes(@NonNull @StyleableRes int[]);
    method @NonNull public android.content.res.TypedArray obtainStyledAttributes(@StyleRes int, @NonNull @StyleableRes int[]) throws android.content.res.Resources.NotFoundException;
    method @NonNull public android.content.res.TypedArray obtainStyledAttributes(@Nullable android.util.AttributeSet, @NonNull @StyleableRes int[], @AttrRes int, @StyleRes int);
    method public void rebase();
    method public boolean resolveAttribute(int, android.util.TypedValue, boolean);
    method public void setTo(android.content.res.Resources.Theme);
  }
+0 −2
Original line number Diff line number Diff line
@@ -1721,8 +1721,6 @@ public class Resources {
         * Rebases the theme against the parent Resource object's current
         * configuration by re-applying the styles passed to
         * {@link #applyStyle(int, boolean)}.
         *
         * @hide
         */
        public void rebase() {
            mThemeImpl.rebase();