Skip to content

Commit 9920383

Browse files
committed
fix onekey lockscreen
1 parent 9431f72 commit 9920383

File tree

4 files changed

+49
-16
lines changed

4 files changed

+49
-16
lines changed

app/build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ android {
1818
applicationId "cn.modificator.launcher"
1919
minSdkVersion 14
2020
targetSdkVersion 29
21-
versionCode 24
22-
versionName "0.1.8.2"
21+
versionCode 25
22+
versionName "0.1.8.3"
2323
signingConfig signingConfigs.config
2424
}
2525
buildTypes {
@@ -44,7 +44,15 @@ android {
4444
checkReleaseBuilds false
4545
abortOnError false
4646
}
47+
48+
flavorDimensions "screen"
4749
productFlavors {
50+
home{
51+
dimension "screen"
52+
}
53+
epd{
54+
dimension "screen"
55+
}
4856
}
4957
packagingOptions {
5058
exclude 'proguard-project.txt'

app/src/epd/AndroidManifest.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="cn.modificator.launcher">
4+
<application>
5+
<activity
6+
android:name=".Launcher"
7+
android:launchMode="singleTask">
8+
<intent-filter>
9+
<action android:name="android.intent.action.MAIN" />
10+
11+
<category android:name="android.intent.category.LAUNCHER" />
12+
<category
13+
android:name="com.yotadevices.intent.category.EPD_HOME" />
14+
</intent-filter>
15+
<meta-data android:name="com.yotadevices.keep_on_epd_screen" android:value="true"/>
16+
</activity>
17+
18+
</application>
19+
20+
</manifest>

app/src/home/AndroidManifest.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="cn.modificator.launcher">
4+
<application>
5+
<activity
6+
android:name=".Launcher"
7+
android:launchMode="singleTask">
8+
<intent-filter>
9+
<action android:name="android.intent.action.MAIN" />
10+
11+
<category android:name="android.intent.category.LAUNCHER" />
12+
<category android:name="android.intent.category.HOME" />
13+
<category android:name="android.intent.category.DEFAULT" />
14+
</intent-filter>
15+
</activity>
16+
17+
</application>
18+
19+
</manifest>

app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,6 @@
2626
android:label="@string/app_name"
2727
android:supportsRtl="true"
2828
android:theme="@style/AppTheme">
29-
<activity
30-
android:name=".Launcher"
31-
android:launchMode="singleInstance">
32-
<intent-filter>
33-
<action android:name="android.intent.action.MAIN" />
34-
35-
<category android:name="android.intent.category.LAUNCHER" />
36-
<category android:name="android.intent.category.HOME" />
37-
<category android:name="android.intent.category.DEFAULT" />
38-
<category
39-
android:name="com.yotadevices.intent.category.EPD_HOME" />
40-
</intent-filter>
41-
<meta-data android:name="com.yotadevices.keep_on_epd_screen" android:value="true"/>
42-
</activity>
4329

4430
<service
4531
android:name=".ftpservice.FTPService"

0 commit comments

Comments
 (0)