2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00

Keyboard won't use the full screen when in landscape mode.

This commit is contained in:
Albert Vaca
2014-10-17 19:10:12 -07:00
parent cfbe6775d0
commit dafe9eb023

View File

@@ -6,6 +6,8 @@ import android.util.AttributeSet;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import org.kde.kdeconnect.BackgroundService;
import org.kde.kdeconnect.Device;
@@ -49,6 +51,12 @@ public class KeyListenerView extends View {
setFocusableInTouchMode(true);
}
@Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_FULLSCREEN;
return null;
}
@Override
public boolean onCheckIsTextEditor() {
return true;