Fixed Settings Cellular Networks crash.

+ Removed the Cellular Networks option from Data Usage when the user is not
  the phone owner.

Bug: 17529931
Change-Id: Ice89b8fb1e6d41fe71235af0beaa1ee3653f8cf8
This commit is contained in:
PauloftheWest
2014-09-18 10:12:25 -07:00
parent 4241b0a962
commit a4b8fb36b4

View File

@@ -513,11 +513,8 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable
mMenuSimCards.setVisible(false);
mMenuCellularNetworks = menu.findItem(R.id.data_usage_menu_cellular_networks);
if (hasReadyMobileRadio(context)) {
mMenuCellularNetworks.setVisible(!appDetailMode);
} else {
mMenuCellularNetworks.setVisible(false);
}
mMenuCellularNetworks.setVisible(hasReadyMobileRadio(context)
&& !appDetailMode && isOwner);
final MenuItem help = menu.findItem(R.id.data_usage_menu_help);
String helpUrl;