From aa96ad2c66c5930f639f59ab5a067de59a8c1372 Mon Sep 17 00:00:00 2001 From: itgaojian163 Date: Sun, 18 Dec 2022 19:12:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 14 +++++++++++++- .../java/com/tenlion/xztouch/MainActivity.java | 4 ++-- .../com/tenlion/xztouch/push/ServerClient.java | 2 +- app/src/main/res/values/themes.xml | 1 + app/src/main/res/xml/network_config.xml | 11 +++++++++++ 5 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/xml/network_config.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index fe446ba..0bfe044 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,6 +2,17 @@ + + + + + + + + + + + + > = Build.VERSION_CODES.O) { NotificationChannel channel = new NotificationChannel(PRIMARY_CHANNEL, - "亲情电话", NotificationManager.IMPORTANCE_DEFAULT); + "展览系统", NotificationManager.IMPORTANCE_DEFAULT); channel.setLightColor(Color.GREEN); channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE); getNotificationManager(context).createNotificationChannel(channel); diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index a9aa10c..d6f95fe 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -11,6 +11,7 @@ @color/black ?attr/colorPrimaryVariant + true \ No newline at end of file diff --git a/app/src/main/res/xml/network_config.xml b/app/src/main/res/xml/network_config.xml new file mode 100644 index 0000000..4072b0d --- /dev/null +++ b/app/src/main/res/xml/network_config.xml @@ -0,0 +1,11 @@ + + + + + + + + + \ No newline at end of file