Skip to content

Commit

Permalink
Supports API 29
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb2060 committed Jan 18, 2020
1 parent 76528b5 commit 1a0a5a7
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions library/src/main/java/me/weishu/leoric/LeoricProcessImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,20 @@ private boolean startServiceByAmsBinder() {
return false;
}
int code;
int sdk = Build.VERSION.SDK_INT;
if (sdk == 28) {
code = 30;
} else if (sdk == 27) {
code = 26;
} else if (sdk == 26) {
code = 26;
} else if (sdk == 25) {
code = 34;
} else {
code = 34;
switch (Build.VERSION.SDK_INT) {
case 26:
case 27:
code = 26;
break;
case 28:
code = 30;
break;
case 29:
code = 24;
break;
default:
code = 34;
break;
}
//mRemote.transact(34, mServiceData, null, 0);//START_SERVICE_TRANSACTION = 34
// mRemote.transact(26, mServiceData, null, 1);//START_SERVICE_TRANSACTION = 34
Expand Down

0 comments on commit 1a0a5a7

Please sign in to comment.