commit | ac0dbbbb8a4c5917cb07680021406c17b3333b98 | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Tue May 03 15:58:35 2016 -0700 |
committer | Felipe Leme <felipeal@google.com> | Tue May 03 15:58:35 2016 -0700 |
tree | 6fe0de79cbd528388e8d1be4c6063e777e0bc348 | |
parent | a2c10caef20bbdb447844c09a822073fd0c9d62f [diff] [blame] |
Don't display 1st-time dialog when disabling Data Saver. BUG: 28098106 Change-Id: Iec6deb45a881fab2896463a59cbc7a96a9e5c811
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 0ce805e..b22e1ec 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/DataSaverTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/DataSaverTile.java
@@ -56,7 +56,8 @@ @Override protected void handleClick() { - if (Prefs.getBoolean(mContext, Prefs.Key.QS_DATA_SAVER_DIALOG_SHOWN, false)) { + if (mState.value + || Prefs.getBoolean(mContext, Prefs.Key.QS_DATA_SAVER_DIALOG_SHOWN, false)) { // Do it right away. toggleDataSaver(); return;