diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-02-26 20:26:49 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-02-26 20:26:49 +0530 |
commit | 4d2bfe3ef3fe7a23b49e9d8f8e5227f1aa134d74 (patch) | |
tree | e1f0409534983f85a25bf307b4d5826ada07570d /app/src/main/java | |
parent | 7f37ff032fe2efe46c710c5f40cee541fb972346 (diff) |
Resolve some lint and build warnings
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/wireguard/android/fragment/ConfigNamingDialogFragment.java | 2 |
1 files changed, 1 insertions, 1 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); |