Commit 5fd0c05f by amateur

1

1 parent 18cd4190
......@@ -10,7 +10,7 @@ import androidx.annotation.Nullable;
import com.polysoft.nafmii.webview.X5Core;
import com.polysoft.nafmii.wechat.QQApi;
public abstract class WebviewActivity extends BaseActivity{
public abstract class WebviewActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
......@@ -29,7 +29,7 @@ public abstract class WebviewActivity extends BaseActivity{
protected void onPause() {
super.onPause();
InputMethodManager input = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
if (input.isActive()) {
if (null != input && input.isActive()) {
input.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, InputMethodManager.HIDE_NOT_ALWAYS);
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!