Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a800795a authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Hotspot Tile: longclick should open Tethering settings" am: 96c4f1a2 am: 4e82bf6c

am: 55345f5c

Change-Id: I7874cfc1e034577390d5d77ebbdb22358de57b47
parents ffa46b20 55345f5c
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.systemui.qs.tiles;
package com.android.systemui.qs.tiles;


import android.content.BroadcastReceiver;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Context;
import android.content.Intent;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.IntentFilter;
@@ -37,6 +38,9 @@ import com.android.systemui.statusbar.policy.HotspotController;


/** Quick settings tile: Hotspot **/
/** Quick settings tile: Hotspot **/
public class HotspotTile extends QSTile<QSTile.AirplaneBooleanState> {
public class HotspotTile extends QSTile<QSTile.AirplaneBooleanState> {
    static final Intent TETHER_SETTINGS = new Intent().setComponent(new ComponentName(
             "com.android.settings", "com.android.settings.TetherSettings"));

    private final AnimationIcon mEnable =
    private final AnimationIcon mEnable =
            new AnimationIcon(R.drawable.ic_hotspot_enable_animation,
            new AnimationIcon(R.drawable.ic_hotspot_enable_animation,
                    R.drawable.ic_hotspot_disable);
                    R.drawable.ic_hotspot_disable);
@@ -94,7 +98,7 @@ public class HotspotTile extends QSTile<QSTile.AirplaneBooleanState> {


    @Override
    @Override
    public Intent getLongClickIntent() {
    public Intent getLongClickIntent() {
        return new Intent(Settings.ACTION_WIRELESS_SETTINGS);
        return new Intent(TETHER_SETTINGS);
    }
    }


    @Override
    @Override