Skip to content

Commit

Permalink
start foreground service on API 29+ (just to prove Leoric works on AP…
Browse files Browse the repository at this point in the history
…I 29)
  • Loading branch information
RikkaW committed Jan 20, 2020
1 parent 10ba456 commit b54b150
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Expand Up @@ -6,7 +6,7 @@ android {
defaultConfig {
applicationId "me.weishu.leoric"
minSdkVersion 21
targetSdkVersion 25
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Expand Up @@ -142,7 +142,7 @@ private void initServiceParcel(Context context, String serviceName) {
mServiceData.writeInt(1);
intent.writeToParcel(mServiceData, 0);
mServiceData.writeString(null);
mServiceData.writeInt(0);
mServiceData.writeInt(Build.VERSION.SDK_INT >= 29 ? 1 : 0);
mServiceData.writeString(context.getPackageName());
mServiceData.writeInt(0);
} else {
Expand Down

0 comments on commit b54b150

Please sign in to comment.