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

Commit 9f557877 authored by d34d's avatar d34d Committed by Meninblack007
Browse files

QS: Show # of clients connected to hotspot

Since we no longer post a notification showing that the wifi hotspot
is on and the # of connected clients, we now show the # of clients
connected in the label of the hotspot QS tile.

Change-Id: I9ed37b96db9b5b4320a7260524f69733ea70d030

HotSpot: Store # of connected clients in receiver

Get the number of connected clients in onReceive and cache the value
to be used in handleUpdateState.

Change-Id: I011a13e186c1fa9976df58a4ad1603e6c0cd6bbb
parent 3f908d23
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.os.IBinder;
import android.os.Messenger;
import android.os.ParcelFileDescriptor;
import android.os.ResultReceiver;
import android.net.wifi.WifiDevice;

import com.android.internal.net.LegacyVpnInfo;
import com.android.internal.net.VpnConfig;
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
    <bool name="show_ongoing_ime_switcher">true</bool>
    <bool name="action_bar_expanded_action_views_exclusive">true</bool>
    <bool name="target_honeycomb_needs_options_menu">true</bool>

    <!-- Whether to enable softap extention feature -->
    <bool name="config_softap_extention">true</bool>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -73,4 +73,7 @@
    <java-symbol type="bool" name="config_forceAnalogCarDock" />
    <java-symbol type="bool" name="config_forceAnalogDeskDock" />

    <!-- config softap extention feature -->
    <java-symbol type="bool" name="config_softap_extention" />

</resources>
+4 −0
Original line number Diff line number Diff line
@@ -2830,4 +2830,8 @@
  <!-- Last app switch animations -->
  <java-symbol type="anim" name="last_app_in" />
  <java-symbol type="anim" name="last_app_out" />

  <!-- config softap extention feature -->
  <java-symbol type="bool" name="config_softap_extention" />

</resources>
+7 −0
Original line number Diff line number Diff line
@@ -109,4 +109,11 @@

    <!-- Path data for circle battery -->
    <string name="battery_circle_path" translatable="false">M 12 3.5 C 16.6944203736 3.5 20.5 7.30557962644 20.5 12 C 20.5 16.6944203736 16.6944203736 20.5 12 20.5 C 7.30557962644 20.5 3.5 16.6944203736 3.5 12 C 3.5 7.30557962644 7.30557962644 3.5 12 3.5 Z</string>

    <!-- Wi-Fi hotspot label when enabled -->
    <plurals name="wifi_hotspot_connected_clients_label">
        <item quantity="one">%1$d client</item>
        <item quantity="other">%1$d clients</item>
    </plurals>

</resources>
Loading