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

Commit 16c5153e authored by Jake Whatley's avatar Jake Whatley Committed by Michael Bestas
Browse files

Hotspot Tile: longclick should open Tethering settings



Change-Id: I96729a1d74b3552a3b17a31f04043f75d3ace41d
Signed-off-by: default avatarJake Whatley <jacob.whatley91@gmail.com>
parent 91053a5c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.systemui.qs.tiles;

import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
@@ -41,6 +42,9 @@ import java.util.List;

/** Quick settings tile: Hotspot **/
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 =
            new AnimationIcon(R.drawable.ic_hotspot_enable_animation,
                    R.drawable.ic_hotspot_disable);
@@ -105,7 +109,7 @@ public class HotspotTile extends QSTile<QSTile.AirplaneBooleanState> {

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

    @Override