Ticket #13444: 2019040701_android-recover-from-sleep-1.patch

File 2019040701_android-recover-from-sleep-1.patch, 2.4 KB (added by mspieth, 8 months ago)
  • android/AndroidManifest.xml.in

    diff --git a/android/AndroidManifest.xml.in b/android/AndroidManifest.xml.in
    index 67a37de5..159da3a2 100644
    a b  
    11<?xml version="1.0"?>
    22<manifest package="org.mythtv.mythfrontend" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="1" android:installLocation="auto">
    33    <application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="mythfrontend" android:icon="@drawable/ic_launcher" android:banner="@drawable/banner" android:debuggable="true" android:theme="@style/AppTheme" >
    4         <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:label="mythfrontend" android:screenOrientation="landscape" android:launchMode="singleTop" android:noHistory="true">
     4        <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:label="mythfrontend" android:screenOrientation="landscape" android:launchMode="singleTop" android:noHistory="false">
    55            <intent-filter>
    66                <action android:name="android.intent.action.MAIN"/>
    77                <category android:name="android.intent.category.LAUNCHER"/>
  • android/android-package-source/src/org/qtproject/qt5/android/bindings/QtActivity.java

    diff --git a/android/android-package-source/src/org/qtproject/qt5/android/bindings/QtActivity.java b/android/android-package-source/src/org/qtproject/qt5/android/bindings/QtActivity.java
    index a1572256..0628b113 100644
    a b public class QtActivity extends Activity 
    714714        super.onResume();
    715715        hideSystemUI();
    716716        QtApplication.invokeDelegate();
     717        onKeyDown(KeyEvent.KEYCODE_CTRL_LEFT, new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_CTRL_LEFT));
     718        onKeyUp(KeyEvent.KEYCODE_CTRL_LEFT, new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_CTRL_LEFT));
    717719    }
    718720    //---------------------------------------------------------------------------
    719721