Merge "Change Notification expander to use 10% opaque foreground color" into udc-qpr-dev am: 745b7dca9f
am: fa4994e1a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/24405286 Change-Id: I8d1740726ce793bbdf3b3effcee5d1f0d523a0ef Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -50,6 +50,7 @@ import android.view.ViewOutlineProvider;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.core.graphics.ColorUtils;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
@@ -176,7 +177,8 @@ public class NotificationHistoryActivity extends CollapsingToolbarBaseActivity {
|
||||
com.android.internal.R.id.expand_button);
|
||||
int textColor = obtainThemeColor(android.R.attr.textColorPrimary);
|
||||
int backgroundColor = obtainThemeColor(android.R.attr.colorBackgroundFloating);
|
||||
expand.setDefaultPillColor(backgroundColor);
|
||||
int pillColor = ColorUtils.blendARGB(textColor, backgroundColor, 0.9f);
|
||||
expand.setDefaultPillColor(pillColor);
|
||||
expand.setDefaultTextColor(textColor);
|
||||
expand.setExpanded(false);
|
||||
header.setStateDescription(container.getVisibility() == View.VISIBLE
|
||||
|
Reference in New Issue
Block a user