mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am c60a846e: Fix NPE in Settings.updateCustomInputStylesSummary
* commit 'c60a846e219ead1a40307d1a562013c38ea81b9d': Fix NPE in Settings.updateCustomInputStylesSummary
This commit is contained in:
commit
bc48a8f7ab
@ -28,6 +28,7 @@ import android.view.inputmethod.InputMethodSubtype;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class AdditionalSubtype {
|
||||
private static final InputMethodSubtype EMPTY_SUBTYPE_ARRAY = new InputMethodSubtype[0];
|
||||
|
||||
private AdditionalSubtype() {
|
||||
// This utility class is not publicly instantiable.
|
||||
@ -86,7 +87,7 @@ public class AdditionalSubtype {
|
||||
|
||||
public static InputMethodSubtype[] createAdditionalSubtypesArray(String prefSubtypes) {
|
||||
if (TextUtils.isEmpty(prefSubtypes)) {
|
||||
return null;
|
||||
return EMPTY_SUBTYPE_ARRAY;
|
||||
}
|
||||
final String[] prefSubtypeArray = prefSubtypes.split(PREF_SUBTYPE_SEPARATOR);
|
||||
final ArrayList<InputMethodSubtype> subtypesList =
|
||||
|
Loading…
x
Reference in New Issue
Block a user