Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-base: Commit

frameworks/base


Commit MetaInfo

Revision1b211832bf413e1617b783470b74e99dc7fb57a7 (tree)
Time2020-06-13 00:40:54
Authorutzcoz <utzcoz@outl...>
Commiterutzcoz

Log Message

Ignore system ui visibility for decor caption view visibility

The decor caption will show only for freeform window, and we don't need
to care system ui visibility for freeform window.

Signed-off-by: utzcoz <utzcoz@outlook.com>

Change Summary

Incremental Difference

--- a/core/java/com/android/internal/widget/DecorCaptionView.java
+++ b/core/java/com/android/internal/widget/DecorCaptionView.java
@@ -374,7 +374,14 @@ public class DecorCaptionView extends ViewGroup implements View.OnTouchListener,
374374 **/
375375 private void updateCaptionVisibility() {
376376 // Don't show the caption if the window has e.g. entered full screen.
377- boolean invisible = isFillingScreen() || !mShow;
377+ // region @boringdroid
378+ // If mShow is true, the window is in freeform window, because only freeform
379+ // window can show decor caption. In freeform window mode, we should ignore
380+ // system ui visibility. If we consider it, the decor caption will dismiss
381+ // if we resize window with fullscreen system ui visibility, such as Clock.
382+ // boolean invisible = isFillingScreen() || !mShow;
383+ boolean invisible = !mShow;
384+ // endregion
378385 mCaption.setVisibility(invisible ? GONE : VISIBLE);
379386 mCaption.setOnTouchListener(this);
380387 }
Show on old repository browser