Merge "Increase expand/collapse tap target" into rvc-qpr-dev am: 35e0d32d0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12130259 Change-Id: I4998fdace936dc05a40a80ee0602a2c0568607e7
This commit is contained in:
@@ -155,21 +155,22 @@ public class NotificationHistoryActivity extends Activity {
|
||||
|
||||
final View container = viewForPackage.findViewById(R.id.notification_list);
|
||||
container.setVisibility(View.GONE);
|
||||
ImageButton expand = viewForPackage.findViewById(R.id.expand);
|
||||
expand.setContentDescription(container.getVisibility() == View.VISIBLE
|
||||
View header = viewForPackage.findViewById(R.id.app_header);
|
||||
ImageView expand = viewForPackage.findViewById(R.id.expand);
|
||||
header.setStateDescription(container.getVisibility() == View.VISIBLE
|
||||
? getString(R.string.condition_expand_hide)
|
||||
: getString(R.string.condition_expand_show));
|
||||
int finalI = i;
|
||||
expand.setOnClickListener(v -> {
|
||||
header.setOnClickListener(v -> {
|
||||
container.setVisibility(container.getVisibility() == View.VISIBLE
|
||||
? View.GONE : View.VISIBLE);
|
||||
expand.setImageResource(container.getVisibility() == View.VISIBLE
|
||||
? R.drawable.ic_expand_less
|
||||
: com.android.internal.R.drawable.ic_expand_more);
|
||||
expand.setContentDescription(container.getVisibility() == View.VISIBLE
|
||||
header.setStateDescription(container.getVisibility() == View.VISIBLE
|
||||
? getString(R.string.condition_expand_hide)
|
||||
: getString(R.string.condition_expand_show));
|
||||
expand.sendAccessibilityEvent(TYPE_VIEW_ACCESSIBILITY_FOCUSED);
|
||||
header.sendAccessibilityEvent(TYPE_VIEW_ACCESSIBILITY_FOCUSED);
|
||||
mUiEventLogger.logWithPosition(
|
||||
(container.getVisibility() == View.VISIBLE)
|
||||
? NotificationHistoryEvent.NOTIFICATION_HISTORY_PACKAGE_HISTORY_OPEN
|
||||
|
Reference in New Issue
Block a user