mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01: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:
parent
784affe39c
commit
db2f50c76e
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package com.termux.app;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import org.json.JSONArray;
|
||||
|
|
@ -305,7 +307,7 @@ class ExtraKeyButton {
|
|||
keys[i] = ExtraKeysInfos.replaceAlias(keys[i]);
|
||||
}
|
||||
|
||||
this.key = String.join(" ", keys);
|
||||
this.key = TextUtils.join(" ", keys);
|
||||
|
||||
String displayFromConfig = config.optString("display", null);
|
||||
if (displayFromConfig != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue