package com.hh.features;

import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;

public class PfKeyboard {

	public static void show(Context pContext,View pView){
		InputMethodManager lInputManager = (InputMethodManager) pContext.getSystemService(Context.INPUT_METHOD_SERVICE);
		lInputManager.showSoftInput(pView, 0);
	}

	public static void hide(Context pContext,View pView){
		InputMethodManager lInputManager = (InputMethodManager) pContext.getSystemService(Context.INPUT_METHOD_SERVICE);
		lInputManager.hideSoftInputFromWindow(pView.getWindowToken(), 0);
	}

	
}

@@ -202,59 +202,14 @@
 text
-,View pView)%7B%0A%09%09InputMethodManager lInputManager = 
+)%7B%0A%09%09(
 (Inp
@@ -216,33 +216,32 @@
 utMethodManager)
- 
 pContext.getSyst
@@ -283,51 +283,104 @@
 ICE)
-;%0A%09%09lInputManager.showSoftInput(pView, 0
+)%0A%09%09%09%09.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY
 );%0A
+%0A
 %09%7D%0A%0A

correct the bug of show keyboard