Merge "avoid stopping app in case of accessing empty db"
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user