am a7d2fd80: Merge "avoid stopping app in case of accessing empty db"

* commit 'a7d2fd80c2f698d46548f949a2988f5f6d30af3d':
  avoid stopping app in case of accessing empty db
This commit is contained in:
Wink Saville
2013-02-21 14:23:40 -08:00
committed by Android Git Automerger

View File

@@ -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) {