diff options
| author | 2017-04-19 13:45:02 +0000 | |
|---|---|---|
| committer | 2017-04-19 13:45:07 +0000 | |
| commit | f9db6d3b5f4f8956935d6129e6d507297c6d0166 (patch) | |
| tree | 318f0c0ccadbabfd6ee1753cd8a8b5a929354b55 | |
| parent | f1c7b9e12144b307289b089f3b1480b8bc24a421 (diff) | |
| parent | e2503dd3f89a00a95d53829bccf33fec67baf1d3 (diff) | |
Merge changes I1d00d86e,I16d81113 into oc-dev
* changes:
Silence non-clickable imagebutton
Remove log spam
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java | 4 | ||||
| -rw-r--r-- | services/core/java/com/android/server/notification/NotificationManagerService.java | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java index 697cac99f244..b8b046b9990d 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java @@ -433,7 +433,7 @@ public class VolumeDialogImpl implements VolumeDialog, TunerService.Tunable { return false; } }); - row.icon = (ImageButton) row.view.findViewById(R.id.volume_row_icon); + row.icon = row.view.findViewById(R.id.volume_row_icon); row.icon.setImageResource(iconRes); if (row.stream != AudioSystem.STREAM_ACCESSIBILITY) { row.icon.setOnClickListener(new OnClickListener() { @@ -465,6 +465,8 @@ public class VolumeDialogImpl implements VolumeDialog, TunerService.Tunable { row.userAttempt = 0; // reset the grace period, slider updates immediately } }); + } else { + row.icon.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO); } } diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 8a6a940e6669..e13aeaf91ea3 100644 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -3611,7 +3611,7 @@ public class NotificationManagerService extends SystemService { final boolean aboveThreshold = record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT; final boolean canInterrupt = aboveThreshold && !record.isIntercepted(); - if (DBG || record.isIntercepted()) + if (DBG) Slog.v(TAG, "pkg=" + record.sbn.getPackageName() + " canInterrupt=" + canInterrupt + " intercept=" + record.isIntercepted() |