mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix an NPE
Change-Id: I6307c1545d9d48cdea66d08f8efc1b7fbb08ee42
This commit is contained in:
parent
1252333efd
commit
92392b21f2
@ -307,11 +307,15 @@ public final class SettingsValues {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isBeforeJellyBean() {
|
public boolean isBeforeJellyBean() {
|
||||||
return mAppWorkarounds.get(null, TIMEOUT_TO_GET_TARGET_PACKAGE).isBeforeJellyBean();
|
final AppWorkaroundsUtils appWorkaroundUtils
|
||||||
|
= mAppWorkarounds.get(null, TIMEOUT_TO_GET_TARGET_PACKAGE);
|
||||||
|
return null == appWorkaroundUtils ? false : appWorkaroundUtils.isBeforeJellyBean();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isBrokenByRecorrection() {
|
public boolean isBrokenByRecorrection() {
|
||||||
return mAppWorkarounds.get(null, TIMEOUT_TO_GET_TARGET_PACKAGE).isBrokenByRecorrection();
|
final AppWorkaroundsUtils appWorkaroundUtils
|
||||||
|
= mAppWorkarounds.get(null, TIMEOUT_TO_GET_TARGET_PACKAGE);
|
||||||
|
return null == appWorkaroundUtils ? null : appWorkaroundUtils.isBrokenByRecorrection();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper functions to create member values.
|
// Helper functions to create member values.
|
||||||
|
Loading…
Reference in New Issue
Block a user