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

Commit a4b8fb36 authored by PauloftheWest's avatar PauloftheWest
Browse files

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
parent 4241b0a9
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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;