Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 738867e9 authored by Salvador Martinez's avatar Salvador Martinez Committed by android-build-merger
Browse files

Added error handling to settings suggestions list am: 2197e8d6

am: a6e6feff

Change-Id: Ia038629a47a212b2c4f5beb2eb367ffbfbbf6895
parents 31b42a20 a6e6feff
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@ import android.util.Xml;
import android.provider.Settings;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.content.ContentValues;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.view.InflateException;
@@ -176,6 +175,9 @@ public class SuggestionParser {
        } catch (PackageManager.NameNotFoundException e) {
            Log.w(TAG, "Cannot find resources for " + suggestion.intent.getComponent());
            return false;
        } catch (Resources.NotFoundException e) {
            Log.w(TAG, "Cannot find resources for " + suggestion.intent.getComponent(), e);
            return false;
        }
    }