AppCompat updates

This commit is contained in:
Andrew Rabert 2021-05-23 14:56:08 -04:00
parent 63df26cdfd
commit 27b0dc742c
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}