diff --git a/packages/SystemUI/res/layout/status_bar_expanded.xml b/packages/SystemUI/res/layout/status_bar_expanded.xml
index 09d46856dec80..fb39d3e4027d5 100644
--- a/packages/SystemUI/res/layout/status_bar_expanded.xml
+++ b/packages/SystemUI/res/layout/status_bar_expanded.xml
@@ -137,11 +137,12 @@
systemui:layout_constraintRight_toRightOf="parent"
systemui:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="20dp"
- android:paddingLeft="20dp"
- android:paddingRight="20dp"
- android:paddingTop="10dp"
- android:paddingBottom="10dp"
- android:elevation="10dp"
+ android:paddingHorizontal="16dp"
+ android:minHeight="44dp"
+ android:elevation="4dp"
+ android:background="@drawable/rounded_bg_full"
+ android:gravity="center"
+ android:text="@string/tap_again"
android:visibility="gone"
/>
diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml
index 01d0dde6da5e3..db3fae6fa491c 100644
--- a/packages/SystemUI/res/values/strings.xml
+++ b/packages/SystemUI/res/values/strings.xml
@@ -1062,6 +1062,9 @@
Tap again to open
+
+ Tap again
+
Swipe up to open
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainView.java
index 9856795c89039..52e0e8a7a0cb6 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainView.java
@@ -23,7 +23,6 @@ import android.animation.ObjectAnimator;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
-import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
@@ -35,24 +34,24 @@ import com.android.wm.shell.animation.Interpolators;
/**
* View to show a toast-like popup on the notification shade and quick settings.
*/
-public class TapAgainView extends FrameLayout {
+public class TapAgainView extends TextView {
+ private TextView mTextView;
+
public TapAgainView(
@NonNull Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
- updateBgColor();
}
@Override
protected void onFinishInflate() {
super.onFinishInflate();
-
- TextView text = new TextView(mContext);
- text.setText(R.string.notification_tap_again);
- addView(text);
+ updateColor();
}
- void updateBgColor() {
- setBackgroundResource(R.drawable.rounded_bg_full);
+ void updateColor() {
+ int textColor = getResources().getColor(R.color.notif_pill_text, mContext.getTheme());
+ setTextColor(textColor);
+ setBackground(getResources().getDrawable(R.drawable.rounded_bg_full, mContext.getTheme()));
}
/** Make the view visible. */
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainViewController.java
index bb53bad7df70c..0c5502bac8fc0 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainViewController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/TapAgainViewController.java
@@ -44,17 +44,17 @@ public class TapAgainViewController extends ViewController {
final ConfigurationListener mConfigurationListener = new ConfigurationListener() {
@Override
public void onOverlayChanged() {
- mView.updateBgColor();
+ mView.updateColor();
}
@Override
public void onUiModeChanged() {
- mView.updateBgColor();
+ mView.updateColor();
}
@Override
public void onThemeChanged() {
- mView.updateBgColor();
+ mView.updateColor();
}
};