From d222d34ddc1bc6f1e7dc9197d9b2ce525431414a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 26 Feb 2020 20:26:49 +0530 Subject: Resolve some lint and build warnings Signed-off-by: Harsh Shandilya --- .../java/com/wireguard/android/fragment/ConfigNamingDialogFragment.java | 2 +- app/src/main/res/values-zh-rCN/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/wireguard/android/fragment/ConfigNamingDialogFragment.java b/app/src/main/java/com/wireguard/android/fragment/ConfigNamingDialogFragment.java index e8f0419c..effa0593 100644 --- a/app/src/main/java/com/wireguard/android/fragment/ConfigNamingDialogFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/ConfigNamingDialogFragment.java @@ -77,7 +77,7 @@ public class ConfigNamingDialogFragment extends DialogFragment { @Override public Dialog onCreateDialog(final Bundle savedInstanceState) { - final Activity activity = Objects.requireNonNull(getActivity()); + final Activity activity = requireActivity(); imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index acb93f33..26ca0232 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -139,7 +139,7 @@ 正在安装 wg 与 wg-quick... 所需工具不可用 流量 - 接收:%s,发送:%s + 接收:%1$s,发送:%2$s %d B %.2f KiB %.2f MiB -- cgit v1.2.3