mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-04 17:55:36 +08:00
extra keys: use TextUtils.join instead of String.join
String.join() is available only on Android API 26+ but our current minimal is 24. See https://github.com/termux/termux-app/issues/1670.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package com.termux.app;
|
package com.termux.app;
|
||||||
|
|
||||||
|
import android.text.TextUtils;
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
@@ -305,7 +307,7 @@ class ExtraKeyButton {
|
|||||||
keys[i] = ExtraKeysInfos.replaceAlias(keys[i]);
|
keys[i] = ExtraKeysInfos.replaceAlias(keys[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.key = String.join(" ", keys);
|
this.key = TextUtils.join(" ", keys);
|
||||||
|
|
||||||
String displayFromConfig = config.optString("display", null);
|
String displayFromConfig = config.optString("display", null);
|
||||||
if (displayFromConfig != null) {
|
if (displayFromConfig != null) {
|
||||||
|
Reference in New Issue
Block a user