mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am bb104678: am 6f0cd9ba: Fix a possible NPE.
* commit 'bb10467863ff531c5cbee8ffd72845a91e487e72': Fix a possible NPE.
This commit is contained in:
commit
b012f45242
@ -29,6 +29,7 @@ public class TargetApplicationGetter extends AsyncTask<String, Void, Application
|
||||
new LruCache<String, ApplicationInfo>(MAX_CACHE_ENTRIES);
|
||||
|
||||
public static ApplicationInfo getCachedApplicationInfo(final String packageName) {
|
||||
if (null == packageName) return null;
|
||||
return sCache.get(packageName);
|
||||
}
|
||||
public static void removeApplicationInfoCache(final String packageName) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user