Loading packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java +2 −5 Original line number Diff line number Diff line Loading @@ -17,9 +17,9 @@ package com.android.systemui.qs.tiles; import android.annotation.Nullable; import android.content.ComponentName; import android.content.Intent; import android.os.UserManager; import android.provider.Settings; import android.service.quicksettings.Tile; import android.util.Log; import android.widget.Switch; Loading @@ -36,9 +36,6 @@ import javax.inject.Inject; /** Quick settings tile: Hotspot **/ public class HotspotTile extends QSTileImpl<BooleanState> { private static final Intent TETHER_SETTINGS = new Intent().setComponent(new ComponentName( "com.android.settings", "com.android.settings.TetherSettings")); private final Icon mEnabledStatic = ResourceIcon.get(R.drawable.ic_hotspot); private final HotspotController mHotspotController; Loading Loading @@ -79,7 +76,7 @@ public class HotspotTile extends QSTileImpl<BooleanState> { @Override public Intent getLongClickIntent() { return new Intent(TETHER_SETTINGS); return new Intent(Settings.ACTION_TETHER_SETTINGS); } @Override Loading Loading
packages/SystemUI/src/com/android/systemui/qs/tiles/HotspotTile.java +2 −5 Original line number Diff line number Diff line Loading @@ -17,9 +17,9 @@ package com.android.systemui.qs.tiles; import android.annotation.Nullable; import android.content.ComponentName; import android.content.Intent; import android.os.UserManager; import android.provider.Settings; import android.service.quicksettings.Tile; import android.util.Log; import android.widget.Switch; Loading @@ -36,9 +36,6 @@ import javax.inject.Inject; /** Quick settings tile: Hotspot **/ public class HotspotTile extends QSTileImpl<BooleanState> { private static final Intent TETHER_SETTINGS = new Intent().setComponent(new ComponentName( "com.android.settings", "com.android.settings.TetherSettings")); private final Icon mEnabledStatic = ResourceIcon.get(R.drawable.ic_hotspot); private final HotspotController mHotspotController; Loading Loading @@ -79,7 +76,7 @@ public class HotspotTile extends QSTileImpl<BooleanState> { @Override public Intent getLongClickIntent() { return new Intent(TETHER_SETTINGS); return new Intent(Settings.ACTION_TETHER_SETTINGS); } @Override Loading