OSDN Git Service

Merge "Pretend to be having the original background" into qt-dev
authorJorim Jaggi <jjaggi@google.com>
Fri, 12 Apr 2019 14:19:51 +0000 (14:19 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Fri, 12 Apr 2019 14:19:51 +0000 (14:19 +0000)
1  2 
core/java/com/android/internal/policy/DecorView.java

@@@ -1238,11 -1235,14 +1238,16 @@@ public class DecorView extends FrameLay
          mLastOriginalBackgroundDrawable = mOriginalBackgroundDrawable;
      }
  
+     @Override
+     public Drawable getBackground() {
+         return mOriginalBackgroundDrawable;
+     }
      private int calculateStatusBarColor() {
          return calculateBarColor(mWindow.getAttributes().flags, FLAG_TRANSLUCENT_STATUS,
 -                mSemiTransparentBarColor, mWindow.mStatusBarColor);
 +                mSemiTransparentBarColor, mWindow.mStatusBarColor,
 +                getWindowSystemUiVisibility(), SYSTEM_UI_FLAG_LIGHT_STATUS_BAR,
 +                mWindow.mEnsureStatusBarContrastWhenTransparent);
      }
  
      private int calculateNavigationBarColor() {