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

Commit dc841735 authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android Git Automerger
Browse files

am 4654ffdc: am 8e1c6a06: Merge "Speculative fix of IMMS crash" into lmp-dev

* commit '4654ffdc25931d94ba7658aea7bea6d2a2af9cb9':
  Speculative fix of IMMS crash
parents 8ac58f44 2b6307c8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.ResolveInfo;
import android.content.pm.ServiceInfo;
import android.content.res.Resources;
import android.content.res.Resources.NotFoundException;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.drawable.Drawable;
@@ -421,7 +422,7 @@ public final class InputMethodInfo implements Parcelable {
            }
            final Resources res = context.createPackageContext(getPackageName(), 0).getResources();
            return res.getBoolean(getIsDefaultResourceId());
        } catch (NameNotFoundException e) {
        } catch (NameNotFoundException | NotFoundException e) {
            return false;
        }
    }