commit | 2aa79fa6be6393ebfec4c4727bb2d2eadc125f83 | [log] [tgz] |
---|---|---|
author | chihhangchuang <chihhangchuang@google.com> | Wed Apr 15 19:29:30 2020 +0800 |
committer | chihhangchuang <chihhangchuang@google.com> | Wed Apr 15 19:29:30 2020 +0800 |
tree | e366281dea9ccaefe077f993771bcd821832fa25 | |
parent | b3829fb46ae0764b6ae9d56fe952588b6dd928d7 [diff] |
Add a method to get the visiblity of BottomActionBar Test: Manually Bug: 151287328 Change-Id: I8459793f1ec506d4abf329377e774ed847989580
diff --git a/src/com/android/wallpaper/widget/BottomActionBar.java b/src/com/android/wallpaper/widget/BottomActionBar.java index ee68b81..77b1bba 100644 --- a/src/com/android/wallpaper/widget/BottomActionBar.java +++ b/src/com/android/wallpaper/widget/BottomActionBar.java
@@ -159,6 +159,10 @@ } } + /** Returns {@code true} if visible. */ + public boolean isVisible() { + return getVisibility() == VISIBLE; + } /** Shows {@link BottomActionBar}. */ public void show() {