X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=android_pandora.git;a=blobdiff_plain;f=apps%2Foi-filemanager%2FFileManager%2Fsrc%2Forg%2Fopenintents%2Ffilemanager%2Fcompatibility%2FSoftKeyboard.java;fp=apps%2Foi-filemanager%2FFileManager%2Fsrc%2Forg%2Fopenintents%2Ffilemanager%2Fcompatibility%2FSoftKeyboard.java;h=0000000000000000000000000000000000000000;hp=4e997a3c72162c3a686d2d0fffb9560ee6052607;hb=86591c820f761cc27e31f78790c5a447b8411a33;hpb=ebcf0cf7399e3ec5ba51c5a904553fbcc55725e5 diff --git a/apps/oi-filemanager/FileManager/src/org/openintents/filemanager/compatibility/SoftKeyboard.java b/apps/oi-filemanager/FileManager/src/org/openintents/filemanager/compatibility/SoftKeyboard.java deleted file mode 100644 index 4e997a3..0000000 --- a/apps/oi-filemanager/FileManager/src/org/openintents/filemanager/compatibility/SoftKeyboard.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.openintents.filemanager.compatibility; - -import android.content.Context; -import android.os.IBinder; -import android.view.inputmethod.InputMethodManager; - -/* - * Wraper class for closing the software keyboard, which appeared in API 3. - */ - -public class SoftKeyboard { - /* class initialization fails when this throws an exception */ - static { - try { - Class.forName("android.view.inputmethod.InputMethodManager"); - } catch (Exception ex) { - throw new RuntimeException(ex); - } - } - - /* calling here forces class initialization */ - public static void checkAvailable() {} - - private InputMethodManager inputMethodManager; - - public SoftKeyboard(Context ctx){ - inputMethodManager = (InputMethodManager) ctx.getSystemService( - Context.INPUT_METHOD_SERVICE); - } - - public boolean hideSoftInputFromWindow(IBinder windowToken, int flags){ - return inputMethodManager.hideSoftInputFromWindow(windowToken, flags); - } -} \ No newline at end of file