From 27b0dc742cc525830e08c6999fd6472df2f73639 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Sun, 23 May 2021 14:56:08 -0400 Subject: [PATCH] AppCompat updates --- app/src/main/java/net/nullsum/audinaut/util/Util.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/net/nullsum/audinaut/util/Util.java b/app/src/main/java/net/nullsum/audinaut/util/Util.java index beb47a2..875f57d 100644 --- a/app/src/main/java/net/nullsum/audinaut/util/Util.java +++ b/app/src/main/java/net/nullsum/audinaut/util/Util.java @@ -17,7 +17,6 @@ */ package net.nullsum.audinaut.util; -import android.app.Activity; import android.content.ClipData; import android.content.ClipboardManager; import android.content.ComponentName; @@ -1153,7 +1152,7 @@ public final class Util { } public static void hideKeyboard(View view) { - InputMethodManager imm = (InputMethodManager) view.getContext().getSystemService(Activity.INPUT_METHOD_SERVICE); + InputMethodManager imm = (InputMethodManager) view.getContext().getSystemService(AppCompatActivity.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(view.getWindowToken(), 0); }