Commit 18cd4190 by amateur

1

1 parent 8164f4e5
package com.whaty.nafmii.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.inputmethod.InputMethodManager;
import androidx.annotation.Nullable;
......@@ -22,4 +24,13 @@ public abstract class WebviewActivity extends BaseActivity{
super.onActivityResult(requestCode, resultCode, data);
// QQApi.getTencent().onActivityResult(requestCode, resultCode, data);
}
@Override
protected void onPause() {
super.onPause();
InputMethodManager input = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
if (input.isActive()) {
input.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, InputMethodManager.HIDE_NOT_ALWAYS);
}
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!