Disable new resource shinker to avoid string strip (#1160)
This commit is contained in:
parent
3b230e2653
commit
1588d6160c
|
|
@ -224,6 +224,9 @@ public class LSPManagerService extends ILSPManagerService.Stub {
|
||||||
org.lsposed.manager.R.string.xposed_module_updated_notification_content :
|
org.lsposed.manager.R.string.xposed_module_updated_notification_content :
|
||||||
org.lsposed.manager.R.string.module_is_not_activated_yet_detailed, modulePackageName);
|
org.lsposed.manager.R.string.module_is_not_activated_yet_detailed, modulePackageName);
|
||||||
|
|
||||||
|
var style = new Notification.BigTextStyle();
|
||||||
|
style.bigText(content);
|
||||||
|
|
||||||
var notification = new Notification.Builder(context, CHANNEL_ID)
|
var notification = new Notification.Builder(context, CHANNEL_ID)
|
||||||
.setContentTitle(title)
|
.setContentTitle(title)
|
||||||
.setContentText(content)
|
.setContentText(content)
|
||||||
|
|
@ -231,6 +234,7 @@ public class LSPManagerService extends ILSPManagerService.Stub {
|
||||||
.setColor(context.getResources().getColor(org.lsposed.manager.R.color.color_primary))
|
.setColor(context.getResources().getColor(org.lsposed.manager.R.color.color_primary))
|
||||||
.setContentIntent(getNotificationIntent(modulePackageName, moduleUserId))
|
.setContentIntent(getNotificationIntent(modulePackageName, moduleUserId))
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
|
.setStyle(style)
|
||||||
.build();
|
.build();
|
||||||
notification.extras.putString("android.substName", "LSPosed");
|
notification.extras.putString("android.substName", "LSPosed");
|
||||||
var im = INotificationManager.Stub.asInterface(android.os.ServiceManager.getService("notification"));
|
var im = INotificationManager.Stub.asInterface(android.os.ServiceManager.getService("notification"));
|
||||||
|
|
@ -240,7 +244,7 @@ public class LSPManagerService extends ILSPManagerService.Stub {
|
||||||
new android.content.pm.ParceledListSlice<>(Collections.singletonList(channel)));
|
new android.content.pm.ParceledListSlice<>(Collections.singletonList(channel)));
|
||||||
im.enqueueNotificationWithTag("android", "android", "114514", NOTIFICATION_ID, notification, 0);
|
im.enqueueNotificationWithTag("android", "android", "114514", NOTIFICATION_ID, notification, 0);
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
Log.e(TAG, "posted notification", e);
|
Log.e(TAG, "post notification", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,11 @@
|
||||||
# This option should only be used with decoupled projects. More details, visit
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
# org.gradle.parallel=true
|
# org.gradle.parallel=true
|
||||||
android.experimental.enableNewResourceShrinker=true
|
|
||||||
android.experimental.enableNewResourceShrinker.preciseShrinking=true
|
# disable new resource shinker since it will change the resources id
|
||||||
|
# which will be used by the core
|
||||||
|
# android.experimental.enableNewResourceShrinker=true
|
||||||
|
# android.experimental.enableNewResourceShrinker.preciseShrinking=true
|
||||||
android.enableAppCompileTimeRClass=true
|
android.enableAppCompileTimeRClass=true
|
||||||
android.nonTransitiveRClass=true
|
android.nonTransitiveRClass=true
|
||||||
android.enableR8.fullMode=true
|
android.enableR8.fullMode=true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue