* commit 'f8db32d8af46d1cb1a10cf9d49dde7ecd4ce507d': Enable Ethernet tab in data usage
This commit is contained in:
@@ -277,13 +277,19 @@ public class DataUsageSummary extends Fragment {
|
|||||||
mPolicyEditor = new NetworkPolicyEditor(mPolicyManager);
|
mPolicyEditor = new NetworkPolicyEditor(mPolicyManager);
|
||||||
mPolicyEditor.read();
|
mPolicyEditor.read();
|
||||||
|
|
||||||
|
try {
|
||||||
|
mStatsSession = mStatsService.openSession();
|
||||||
|
} catch (RemoteException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
|
||||||
mShowWifi = mPrefs.getBoolean(PREF_SHOW_WIFI, false);
|
mShowWifi = mPrefs.getBoolean(PREF_SHOW_WIFI, false);
|
||||||
mShowEthernet = mPrefs.getBoolean(PREF_SHOW_ETHERNET, false);
|
mShowEthernet = mPrefs.getBoolean(PREF_SHOW_ETHERNET, false);
|
||||||
|
|
||||||
// override preferences when no mobile radio
|
// override preferences when no mobile radio
|
||||||
if (!hasReadyMobileRadio(context)) {
|
if (!hasReadyMobileRadio(context)) {
|
||||||
mShowWifi = hasWifiRadio(context);
|
mShowWifi = true;
|
||||||
mShowEthernet = hasEthernet(context);
|
mShowEthernet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
setHasOptionsMenu(true);
|
setHasOptionsMenu(true);
|
||||||
@@ -298,12 +304,6 @@ public class DataUsageSummary extends Fragment {
|
|||||||
|
|
||||||
mUidDetailProvider = new UidDetailProvider(context);
|
mUidDetailProvider = new UidDetailProvider(context);
|
||||||
|
|
||||||
try {
|
|
||||||
mStatsSession = mStatsService.openSession();
|
|
||||||
} catch (RemoteException e) {
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
mTabHost = (TabHost) view.findViewById(android.R.id.tabhost);
|
mTabHost = (TabHost) view.findViewById(android.R.id.tabhost);
|
||||||
mTabsContainer = (ViewGroup) view.findViewById(R.id.tabs_container);
|
mTabsContainer = (ViewGroup) view.findViewById(R.id.tabs_container);
|
||||||
mTabWidget = (TabWidget) view.findViewById(android.R.id.tabs);
|
mTabWidget = (TabWidget) view.findViewById(android.R.id.tabs);
|
||||||
|
Reference in New Issue
Block a user