17 lines
536 B
Java
17 lines
536 B
Java
|
package org.thoughtcrime.securesms.util;
|
||
|
|
||
|
import android.app.Activity;
|
||
|
import android.content.Context;
|
||
|
import android.view.WindowManager;
|
||
|
import android.view.inputmethod.InputMethodManager;
|
||
|
|
||
|
public class ServiceUtil {
|
||
|
public static InputMethodManager getInputMethodManager(Context context) {
|
||
|
return (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);
|
||
|
}
|
||
|
|
||
|
public static WindowManager getWindowManager(Context context) {
|
||
|
return (WindowManager) context.getSystemService(Activity.WINDOW_SERVICE);
|
||
|
}
|
||
|
}
|