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

This commit is contained in:
Wink Saville
2013-02-20 23:07:59 +00:00
committed by Gerrit Code Review

View File

@@ -164,6 +164,7 @@ public class ApnSettings extends PreferenceActivity implements
"_id", "name", "apn", "type"}, where, null, "_id", "name", "apn", "type"}, where, null,
Telephony.Carriers.DEFAULT_SORT_ORDER); Telephony.Carriers.DEFAULT_SORT_ORDER);
if (cursor != null) {
PreferenceGroup apnList = (PreferenceGroup) findPreference("apn_list"); PreferenceGroup apnList = (PreferenceGroup) findPreference("apn_list");
apnList.removeAll(); apnList.removeAll();
@@ -203,6 +204,7 @@ public class ApnSettings extends PreferenceActivity implements
apnList.addPreference(preference); apnList.addPreference(preference);
} }
} }
}
@Override @Override
public boolean onCreateOptionsMenu(Menu menu) { public boolean onCreateOptionsMenu(Menu menu) {