2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-02 07:05:09 +00:00

Compare commits

..

3 Commits
v0.9d ... v0.9e

Author SHA1 Message Date
Albert Vaca
475f85d0d3 Bumped version number 2015-11-13 09:19:26 -08:00
Albert Vaca
6c50d0f05d Indentation. 2015-11-13 09:18:13 -08:00
Albert Vaca
aad298ae31 Fixed remote input not sending numbers.
BUG: 354921
2015-11-13 09:17:57 -08:00
3 changed files with 18 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.kde.kdeconnect_tp" package="org.kde.kdeconnect_tp"
android:versionCode="908" android:versionCode="909"
android:versionName="0.9d"> android:versionName="0.9e">
<uses-sdk android:minSdkVersion="9" <uses-sdk android:minSdkVersion="9"
android:targetSdkVersion="22" /> android:targetSdkVersion="22" />

View File

@@ -159,10 +159,13 @@ public class KeyListenerView extends View {
char keyCharacter = event.getDisplayLabel(); char keyCharacter = event.getDisplayLabel();
np.set("key", new String(new char[]{keyCharacter}).toLowerCase()); np.set("key", new String(new char[]{keyCharacter}).toLowerCase());
} else { } else {
return false; //normal keys will be handled by KeyInputConnection //A normal key, but still not handled by the KeyInputConnection (happens with numbers)
np.set("key", new String(new char[]{(char)event.getUnicodeChar()}));
} }
sendKeyPressPackage(np); sendKeyPressPackage(np);
return true; return true;
} }
} }

View File

@@ -345,17 +345,18 @@ public class MousePadActivity extends ActionBarActivity implements GestureDetect
} }
}); });
} }
private void sendSingleHold() {
BackgroundService.RunCommand(this, new BackgroundService.InstanceCallback() { private void sendSingleHold() {
@Override BackgroundService.RunCommand(this, new BackgroundService.InstanceCallback() {
public void onServiceStart(BackgroundService service) { @Override
Device device = service.getDevice(deviceId); public void onServiceStart(BackgroundService service) {
MousePadPlugin mousePadPlugin = device.getPlugin(MousePadPlugin.class); Device device = service.getDevice(deviceId);
if (mousePadPlugin == null) return; MousePadPlugin mousePadPlugin = device.getPlugin(MousePadPlugin.class);
mousePadPlugin.sendSingleHold(); if (mousePadPlugin == null) return;
} mousePadPlugin.sendSingleHold();
}); }
} });
}
private void showKeyboard() { private void showKeyboard() {
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);