commit | 3e5e84152f6c07b4fada3fea2e6d00aa59624b80 | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Wed Mar 09 15:44:23 2016 -0800 |
committer | Felipe Leme <felipeal@google.com> | Wed Mar 09 15:44:23 2016 -0800 |
tree | 1189a260d5cbae94da71a8d12eaf6696e31f626e | |
parent | 0997873effb57b17c27e7698aa6667bda1ab8d77 [diff] [blame] |
Added Talkback announcements for Data Saver switch. BUG: 27504554 Change-Id: I6a6b996fe03a565edc051cf24a8ec7de4e8e5644
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/DataSaverTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/DataSaverTile.java index fa235d3..74b3fdc 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/DataSaverTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/DataSaverTile.java
@@ -73,6 +73,15 @@ } @Override + protected String composeChangeAnnouncement() { + if (mState.value) { + return mContext.getString(R.string.accessibility_quick_settings_data_saver_changed_on); + } else { + return mContext.getString(R.string.accessibility_quick_settings_data_saver_changed_off); + } + } + + @Override public void onDataSaverChanged(boolean isDataSaving) { refreshState(isDataSaving); }