Merge "Added error handling to settings suggestions list" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ed004e2958
@@ -28,7 +28,6 @@ import android.util.Xml;
|
|||||||
import android.provider.Settings;
|
import android.provider.Settings;
|
||||||
import android.accounts.Account;
|
import android.accounts.Account;
|
||||||
import android.accounts.AccountManager;
|
import android.accounts.AccountManager;
|
||||||
import android.content.ContentValues;
|
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.view.InflateException;
|
import android.view.InflateException;
|
||||||
@@ -176,6 +175,9 @@ public class SuggestionParser {
|
|||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
Log.w(TAG, "Cannot find resources for " + suggestion.intent.getComponent());
|
Log.w(TAG, "Cannot find resources for " + suggestion.intent.getComponent());
|
||||||
return false;
|
return false;
|
||||||
|
} catch (Resources.NotFoundException e) {
|
||||||
|
Log.w(TAG, "Cannot find resources for " + suggestion.intent.getComponent(), e);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user