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

Commit a7d2fd80 authored by Wink Saville's avatar Wink Saville Committed by Gerrit Code Review
Browse files

Merge "avoid stopping app in case of accessing empty db"

parents a5f756c9 88c80b10
Loading
Loading
Loading
Loading
+37 −35
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@ public class ApnSettings extends PreferenceActivity implements
                "_id", "name", "apn", "type"}, where, null,
                Telephony.Carriers.DEFAULT_SORT_ORDER);

        if (cursor != null) {
            PreferenceGroup apnList = (PreferenceGroup) findPreference("apn_list");
            apnList.removeAll();

@@ -203,6 +204,7 @@ public class ApnSettings extends PreferenceActivity implements
                apnList.addPreference(preference);
            }
        }
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {