Merge "[2/3] Remove unnecessary throws statement in ServiceManager"
am: 3ba482971b
* commit '3ba482971b0f1709520ba9713fb11ac4727559c4':
[2/3] Remove unnecessary throws statement in ServiceManager
This commit is contained in:
@@ -1875,12 +1875,7 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
|
|||||||
static class SystemPropPoker extends AsyncTask<Void, Void, Void> {
|
static class SystemPropPoker extends AsyncTask<Void, Void, Void> {
|
||||||
@Override
|
@Override
|
||||||
protected Void doInBackground(Void... params) {
|
protected Void doInBackground(Void... params) {
|
||||||
String[] services;
|
String[] services = ServiceManager.listServices();
|
||||||
try {
|
|
||||||
services = ServiceManager.listServices();
|
|
||||||
} catch (RemoteException e) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
for (String service : services) {
|
for (String service : services) {
|
||||||
IBinder obj = ServiceManager.checkService(service);
|
IBinder obj = ServiceManager.checkService(service);
|
||||||
if (obj != null) {
|
if (obj != null) {
|
||||||
|
Reference in New Issue
Block a user