Merge changes I6c0c8730,Icbae30d2
* changes: Fix Wifi Signal strength in the picker. Create a Tron event for opening the network details page.
This commit is contained in:
committed by
Android (Google) Code Review
commit
a4c97ffca6
@@ -23,6 +23,7 @@ import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.StateListDrawable;
|
||||
import android.net.NetworkBadging;
|
||||
import android.net.wifi.WifiConfiguration;
|
||||
import android.net.wifi.WifiManager;
|
||||
import android.os.Looper;
|
||||
import android.os.UserHandle;
|
||||
import android.support.v7.preference.Preference;
|
||||
@@ -222,7 +223,7 @@ public class AccessPointPreference extends Preference {
|
||||
}
|
||||
|
||||
final Context context = getContext();
|
||||
int level = mAccessPoint.getLevel();
|
||||
int level = WifiManager.calculateSignalLevel(mAccessPoint.getRssi(), 5 /* levels */);
|
||||
int wifiBadge = mAccessPoint.getBadge();
|
||||
if (level != mLevel || wifiBadge != mWifiBadge) {
|
||||
mLevel = level;
|
||||
|
||||
@@ -3472,6 +3472,11 @@ message MetricsEvent {
|
||||
// FIELD: Whether developer mode has already been enabled when clicking build number preference
|
||||
FIELD_SETTINGS_BUILD_NUMBER_DEVELOPER_MODE_ENABLED = 848;
|
||||
|
||||
// OPEN: Settings > Wi-Fi > Network Details (click on Access Point)
|
||||
// CATEGORY: SETTINGS
|
||||
// OS: O
|
||||
WIFI_NETWORK_DETAILS = 849;
|
||||
|
||||
// ---- End O Constants, all O constants go above this line ----
|
||||
|
||||
// Add new aosp constants above this line.
|
||||
|
||||
Reference in New Issue
Block a user