Forum improvements

This commit is contained in:
Ernir Erlingsson
2016-06-15 21:24:14 +02:00
parent 08cc5500ef
commit a2a5b746c5
7 changed files with 216 additions and 109 deletions

View File

@@ -12,6 +12,7 @@ import java.util.ArrayList;
import java.util.List;
import static android.view.WindowManager.LayoutParams.FLAG_SECURE;
import static android.view.inputmethod.InputMethodManager.SHOW_FORCED;
import static android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT;
import static org.briarproject.android.TestingConstants.PREVENT_SCREENSHOTS;
@@ -82,6 +83,11 @@ public abstract class BaseActivity extends AppCompatActivity {
}
}
public void showSoftKeyboardForced(View view) {
Object o = getSystemService(INPUT_METHOD_SERVICE);
((InputMethodManager) o).showSoftInput(view, SHOW_FORCED);
}
public void showSoftKeyboard(View view) {
Object o = getSystemService(INPUT_METHOD_SERVICE);
((InputMethodManager) o).showSoftInput(view, SHOW_IMPLICIT);