Switch QS tile creation to use injection
This will make it easy to remove dependency usages from tiles.
Test: existing tests
Change-Id: I943f3098c4e7cf2feaa6ebe190f3ddec557c3850
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 6bf0793..e7c6da6 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java
@@ -34,6 +34,8 @@
import com.android.systemui.statusbar.policy.DataSaverController;
import com.android.systemui.statusbar.policy.HotspotController;
+import javax.inject.Inject;
+
/** Quick settings tile: Hotspot **/
public class HotspotTile extends QSTileImpl<AirplaneBooleanState> {
private static final Intent TETHER_SETTINGS = new Intent().setComponent(new ComponentName(
@@ -48,6 +50,7 @@
private final GlobalSetting mAirplaneMode;
private boolean mListening;
+ @Inject
public HotspotTile(QSHost host) {
super(host);
mHotspotController = Dependency.get(HotspotController.class);