From c26ab75f552471d8c47518064a24a26c680a6e47 Mon Sep 17 00:00:00 2001 From: Amin Shaikh Date: Mon, 23 Apr 2018 18:29:11 -0400 Subject: [PATCH] Disable hotspot when data saver is on. Do not process the QS tap on hotspot when data saver is on. The secondary text already states that "Data Saver is on" and the tile is greyed out. Change-Id: Ied86aba4199c94e68cc2cebf7ccd888c8a04dfb8 Fixes: 77860936 Test: visual --- .../src/com/android/systemui/qs/tiles/HotspotTile.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java index 00d6bd0d307f8..6bf0793a69cb4 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java @@ -98,7 +98,8 @@ public class HotspotTile extends QSTileImpl { @Override protected void handleClick() { final boolean isEnabled = mState.value; - if (!isEnabled && mAirplaneMode.getValue() != 0) { + if (!isEnabled && + (mAirplaneMode.getValue() != 0 || mDataSaverController.isDataSaverEnabled())) { return; } // Immediately enter transient enabling state when turning hotspot on.