Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #144

Merged
merged 252 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
e1ca4df
Reset multiple patients
pachi81 Mar 20, 2024
8019ff6
Lockscreen Wallpaper
pachi81 Mar 20, 2024
ca51541
Refactor startForegroundService
pachi81 Mar 20, 2024
e0a886d
Create AlarmHandler
pachi81 Mar 20, 2024
21ce378
Very Low Alarm Settings
pachi81 Mar 21, 2024
4255c1d
Very Low Alarm Notification
pachi81 Mar 22, 2024
6ee4a32
Alarm Notification View
pachi81 Mar 22, 2024
3d62fd8
Snooze Time handling
pachi81 Mar 22, 2024
a92daab
Notification Settings
pachi81 Mar 22, 2024
13ba319
Update notification and snooze
pachi81 Mar 23, 2024
c089100
Settings for other alarms
pachi81 Mar 24, 2024
9709181
Change alarmhandling for primary delta check
pachi81 Mar 24, 2024
af5500d
Fullscreen notification
pachi81 Mar 26, 2024
a3068f6
Create submenu for alarm types
pachi81 Mar 26, 2024
d265adb
Add settings for Snooze and Fullscreen
pachi81 Mar 26, 2024
d269dac
Add Snooze to Fullscreen
pachi81 Mar 26, 2024
151a2bf
Fix notification layout
pachi81 Mar 26, 2024
05c691b
Fix snooze on lockscreen
pachi81 Mar 26, 2024
e87dda9
Force alarm added
pachi81 Mar 27, 2024
9ccbf18
Fix force alarm sound
pachi81 Mar 28, 2024
1904eb5
Update strings
pachi81 Mar 28, 2024
1380f4e
Use alarmtype for fullscreen notification
pachi81 Mar 28, 2024
68e2126
Close Lockscreen while stopping notification
pachi81 Mar 29, 2024
387488e
Stop DnD to force sound or vibration
pachi81 Mar 29, 2024
e8fb465
Swipe to close
pachi81 Mar 29, 2024
8199079
Update alarm cat prefs
pachi81 Mar 29, 2024
d3121ba
Update alarm cat prefs
pachi81 Apr 3, 2024
f00205d
Optimize IOB/COB change notification
pachi81 Apr 4, 2024
f08702f
Update alarm pref-text
pachi81 Apr 4, 2024
cc9e704
Alarm state icon added
pachi81 Apr 4, 2024
ecaa08f
No alarm on wear or AA connected
pachi81 Apr 4, 2024
5f98953
Fix wear connection for alarms
pachi81 Apr 4, 2024
afb0aaf
Retrigger alarm
pachi81 Apr 4, 2024
2d74f50
Add landscape lockscreen
pachi81 Apr 4, 2024
ef20482
Some fixes
pachi81 Apr 4, 2024
23e34c0
Obsolete Alarm added
pachi81 Apr 4, 2024
f6953c5
Change debug version
pachi81 Apr 4, 2024
e176c84
Refactor time notifier
pachi81 Apr 4, 2024
55dd2e8
Tasker integration for alarms
pachi81 Apr 4, 2024
265ed36
Add time to alarm notifications
pachi81 Apr 4, 2024
9575943
Upgrade to gradle 8.3.1
pachi81 Apr 5, 2024
74a7de9
Reset LibreLink on error
pachi81 Apr 5, 2024
d75d6d2
Add portuguese strings
pachi81 Apr 5, 2024
005955e
Update kotlin to 1.9.23
pachi81 Apr 7, 2024
1fd45af
Wear compose (commented out)
pachi81 Apr 7, 2024
1ea2b6e
Fix notification permission and foreground service
pachi81 Apr 7, 2024
d31572b
Alarms depends on notification permission
pachi81 Apr 7, 2024
bcd9721
Notify AlarmState changed
pachi81 Apr 7, 2024
7e3cd05
Fix LibreLink region handling
pachi81 Apr 8, 2024
83f0015
Fix SoundMode detection
pachi81 Apr 8, 2024
03dc661
Change alarm pref summaries
pachi81 Apr 8, 2024
2859136
LibreLinkUp string updated
pachi81 Apr 8, 2024
968def6
Check connection for remote nighscout
pachi81 Apr 8, 2024
3cbad7d
v14
pachi81 Apr 8, 2024
7d365ac
Request notification permission dialog
pachi81 Apr 8, 2024
f09dd36
fix snooze handling
pachi81 Apr 10, 2024
c02835d
Upgrade Gradle and Android version
pachi81 Mar 14, 2024
eae60b0
Libre support for multiple patients
pachi81 Mar 17, 2024
ee1a3b0
Reset multiple patients
pachi81 Mar 20, 2024
d4cf6b4
Lockscreen Wallpaper
pachi81 Mar 20, 2024
f6cb7f3
Refactor startForegroundService
pachi81 Mar 20, 2024
f323aa6
Optimize IOB/COB change notification
pachi81 Apr 4, 2024
f7f56f9
Refactor time notifier
pachi81 Apr 4, 2024
80d3415
Upgrade to gradle 8.3.1
pachi81 Apr 5, 2024
bd8a9c2
Reset LibreLink on error
pachi81 Apr 5, 2024
116ad14
Update kotlin to 1.9.23
pachi81 Apr 7, 2024
d95f935
Add portuguese strings
pachi81 Apr 5, 2024
52e5f5b
Fix notification permission and foreground service
pachi81 Apr 7, 2024
891e416
Fix LibreLink region handling
pachi81 Apr 8, 2024
8869c40
LibreLinkUp string updated
pachi81 Apr 8, 2024
b9bffb4
Check connection for remote nighscout
pachi81 Apr 8, 2024
a260ca5
Change debug version
pachi81 Apr 4, 2024
7e6a189
v0.9.12
pachi81 Apr 11, 2024
4785343
Update strings.xml - PL strings translated
froster82 Apr 12, 2024
5db0da9
Alarm for wear
pachi81 Apr 10, 2024
a50584f
Manual alarm settings
pachi81 Apr 12, 2024
45b7ec0
Fix alarm settings
pachi81 Apr 12, 2024
d0272ab
Update string pt
pachi81 Apr 14, 2024
a6be266
Add floating widget toggle
pachi81 Apr 14, 2024
f01c472
v27
pachi81 Apr 14, 2024
b5b7eae
Update strings.xml
dinizmauricio Apr 14, 2024
81f2723
Merge pull request #150 from dinizmauricio/patch-1
pachi81 Apr 14, 2024
6620434
Update strings.xml
dinizmauricio Apr 14, 2024
1e78626
Bugfixes
pachi81 Apr 15, 2024
1ff5d58
v28
pachi81 Apr 15, 2024
b44aad1
Use relative time as default
pachi81 Apr 15, 2024
996bb95
Setting for colored notification icon
pachi81 Apr 15, 2024
191dacb
Update strings.xml
dinizmauricio Apr 15, 2024
db1f438
Update strings.xml
dinizmauricio Apr 15, 2024
3f66b92
Refactor alarms
pachi81 Apr 14, 2024
4800c7e
Update strings.xml PL
froster82 Apr 15, 2024
29dc67d
v29
pachi81 Apr 15, 2024
4ed78f6
Merge branch 'vNext' into develop
pachi81 Apr 15, 2024
8430fd5
Refactor alarms
pachi81 Apr 15, 2024
4083397
Update strings.xml small correction to one old string
froster82 Apr 15, 2024
1812003
Improve wear phone check
pachi81 Apr 16, 2024
6430d86
Fix lockscreen layout
pachi81 Apr 16, 2024
0ccf593
Fix obsolete time handling
pachi81 Apr 16, 2024
2630246
Try fix play crashes
pachi81 Apr 16, 2024
844de55
Merge branch 'vNext' into develop
pachi81 Apr 16, 2024
a59e27b
wear navigation
pachi81 Apr 16, 2024
8535dc6
Update strings.xml PL
froster82 Apr 16, 2024
e64aed1
wear alarm type settings
pachi81 Apr 17, 2024
55efbf0
Re-add save sound
pachi81 Apr 17, 2024
1adffc7
Change alarm channel to use sound
pachi81 Apr 17, 2024
f489920
Add alarm trigger to tasker
pachi81 Apr 17, 2024
1e853a6
Merge branch 'vNext' into develop
pachi81 Apr 17, 2024
9e46243
Improve GDA available
pachi81 Apr 17, 2024
5823a5c
Check notification channel
pachi81 Apr 17, 2024
1c38fb3
Show usage of internal app sound
pachi81 Apr 18, 2024
faf2733
Sound level setting
pachi81 Apr 18, 2024
c1539ef
Add settings to command
pachi81 Apr 18, 2024
7e3dc61
Add alarm settings to tasker
pachi81 Apr 18, 2024
3585ceb
Send settings to GDA over setting
pachi81 Apr 18, 2024
ba10c7c
change apk name
pachi81 Apr 18, 2024
ce70508
Merge branch 'vNext' into develop
pachi81 Apr 18, 2024
3ec7ab8
Update alarm config
pachi81 Apr 18, 2024
d1a5471
GDA: sources and alarms
pachi81 Apr 19, 2024
e44ccf1
IOB source description
pachi81 Apr 19, 2024
957ebc6
GDA play silent item
pachi81 Apr 19, 2024
23f66b3
GDA toggle notification inactive
pachi81 Apr 19, 2024
1a52e00
v31
pachi81 Apr 21, 2024
46b2053
GDA source fix
pachi81 Apr 21, 2024
05ec243
GDA notification toggle
pachi81 Apr 21, 2024
0802c19
GDA alarm info
pachi81 Apr 21, 2024
a249e3b
Update strings.xml ENG
froster82 Apr 21, 2024
8e28c05
Update strings.xml PT
dinizmauricio Apr 21, 2024
6f31d53
update string de
pachi81 Apr 22, 2024
890c3f6
Update strings.xml EN
froster82 Apr 22, 2024
608712a
Update strings.xml PL
froster82 Apr 22, 2024
eb98f5c
Merge remote-tracking branch 'origin/develop' into develop
pachi81 Apr 22, 2024
73efd20
Update settings menu
pachi81 Apr 22, 2024
34334d8
Update strings.xml PL2
froster82 Apr 22, 2024
c29f5fd
Fix stop alarm while tapping
pachi81 Apr 23, 2024
f737db1
More alarm settings
pachi81 Apr 24, 2024
6eef430
Move fullscreen setting, add obsolete color setting
pachi81 Apr 25, 2024
e3ab1f5
Enable notification lights
pachi81 Apr 25, 2024
861f31e
update string de
pachi81 Apr 25, 2024
1bffffa
v32
pachi81 Apr 25, 2024
b04eb49
Merge remote-tracking branch 'origin/develop' into develop
pachi81 Apr 25, 2024
5414329
Wear: no popup, if phone connected
pachi81 Apr 26, 2024
2cc4887
Update versions
pachi81 Apr 26, 2024
144eef1
Fix vibration on wear
pachi81 Apr 26, 2024
62f2e44
v33
pachi81 Apr 29, 2024
b792cb7
Colored items with shadow
pachi81 Apr 29, 2024
30083e4
Add target range to alarms
pachi81 Apr 29, 2024
e5ac581
typo
pachi81 Apr 29, 2024
e95f357
Refactor MainActivity
pachi81 Apr 29, 2024
d6e48db
Fix immediately alarm stopping
pachi81 Apr 30, 2024
d4a7aba
Show more connection states
pachi81 Apr 30, 2024
988dfc9
Mainlooper watchdog
pachi81 Apr 30, 2024
7e1bf36
Rename libreview to librelink
pachi81 Apr 30, 2024
831517e
Update tables
pachi81 Apr 30, 2024
024219b
Pref for color scheme
pachi81 Apr 30, 2024
34312e5
Fix for activity
pachi81 Apr 30, 2024
cf46577
v34 dev
pachi81 Apr 30, 2024
d9a4f6b
Update layout
pachi81 May 2, 2024
fffab9b
Add landscape layout
pachi81 May 2, 2024
e5edadf
Update wear layout
pachi81 May 2, 2024
f78ab72
Fix AlarmState
pachi81 May 3, 2024
1355068
Tap action setting
pachi81 May 3, 2024
49cca9b
Tap action for wear complications
pachi81 May 3, 2024
d3a0f24
Resize wear tables
pachi81 May 5, 2024
3a1bb49
Update strings.xml PT
dinizmauricio May 5, 2024
d3e95fe
Move package utils
pachi81 May 5, 2024
c812827
Merge remote-tracking branch 'origin/develop' into develop
pachi81 May 5, 2024
9a35bdc
Update packages in background
pachi81 May 5, 2024
706e815
small fixes
pachi81 May 5, 2024
8048cbf
Use internal broadcast for data source values
pachi81 May 5, 2024
a2e68e3
Small fix
pachi81 May 5, 2024
ae08361
Small fix
pachi81 May 5, 2024
bf1b7ca
Update strings.xml PL
froster82 May 5, 2024
c51f638
Update strings.xml PT
dinizmauricio May 5, 2024
39044ca
Update strings.xml pl 2
froster82 May 5, 2024
443af59
Update strings.xml PL
froster82 May 6, 2024
6b43f71
v35
pachi81 May 6, 2024
b1a3d05
Small changes
pachi81 May 6, 2024
11eb54a
No alarms on wear while AA connected
pachi81 May 6, 2024
0081c59
Show source data as summary
pachi81 May 6, 2024
32ecf7a
UI fixes
pachi81 May 6, 2024
dbb215c
Fix AA state
pachi81 May 6, 2024
8fbb0a3
v36 (beta1)
pachi81 May 6, 2024
0b9f54c
UI fix
pachi81 May 6, 2024
92d34c9
v37
pachi81 May 6, 2024
64a7241
Update strings.xml PL tap action correction
froster82 May 6, 2024
0e6f61e
Timestamp to details view
pachi81 May 7, 2024
884dd5a
Wear toggle alarm and fix alarm state
pachi81 May 7, 2024
c6c85a5
Merge remote-tracking branch 'origin/develop' into develop
pachi81 May 7, 2024
28f0d27
Add snooze to watch
pachi81 May 7, 2024
9173369
Check permission for actions
pachi81 May 7, 2024
3bcd12f
v38
pachi81 May 7, 2024
be96ba3
Update wallpaper in extra thread
pachi81 May 10, 2024
732992e
Fixes
pachi81 May 10, 2024
a752282
Add snooze 30
pachi81 May 11, 2024
5a2c580
v39
pachi81 May 11, 2024
7d4af4e
Update strings.xml PL
froster82 May 12, 2024
04077f0
Space befor unit
pachi81 May 12, 2024
45f3603
Small fix for notification
pachi81 May 12, 2024
248f5cc
v40
pachi81 May 12, 2024
0cf00b7
Fix trend arrow
pachi81 May 12, 2024
c32e010
PS images update
pachi81 May 12, 2024
5425731
Update strings.xml PL
froster82 May 13, 2024
9391436
Fix wear layout
pachi81 May 13, 2024
6d7f2ad
Fix connection timeout handling
pachi81 May 13, 2024
60d5146
Setting for big trend arrow
pachi81 May 13, 2024
ab6fe33
Rotate double down
pachi81 May 13, 2024
5b30396
Fix bitmap center position
pachi81 May 14, 2024
f8b91c8
v41
pachi81 May 14, 2024
247e5c1
Update preferences
pachi81 May 15, 2024
61c9277
WatchDrip+ alarm handling
pachi81 May 15, 2024
90198cd
Nightscout timeout handling
pachi81 May 15, 2024
37a31fd
Fix Background Thread handling
pachi81 May 15, 2024
42f83e7
GDA send settings first time
pachi81 May 16, 2024
de49ca2
GDA update main activity
pachi81 May 16, 2024
fe71ab9
GDA reorder settings
pachi81 May 16, 2024
952c01f
GDA notification toggle
pachi81 May 16, 2024
7b4b4be
Fix icon hint
pachi81 May 16, 2024
83d6254
Center icon for ---
pachi81 May 16, 2024
94a6adb
Small refactor
pachi81 May 16, 2024
e9bdf59
es by ChatGPT
pachi81 May 17, 2024
e084ff7
GDA toggle media item changed
pachi81 May 17, 2024
d05eed6
Fix enable state handling
pachi81 May 17, 2024
d3b0aac
Update versions
pachi81 May 17, 2024
16632fb
GDA fix datasync
pachi81 May 17, 2024
5ee6ac4
Send GDA broadcast after activation
pachi81 May 17, 2024
3c05b11
new popup off icon
pachi81 May 17, 2024
56011f1
Fix strings
pachi81 May 18, 2024
02d6c8e
Add some delay for phone
pachi81 May 18, 2024
46ef267
Change notification to bitmap
pachi81 May 18, 2024
0121cab
Alarm delay on phone
pachi81 May 18, 2024
63bf9e5
v42
pachi81 May 21, 2024
d5b450c
Update strings es
pachi81 May 21, 2024
49783f7
v43
pachi81 May 21, 2024
1c0c202
Update strings
pachi81 May 22, 2024
6eebeb7
PS images
pachi81 May 23, 2024
999ffcf
Update string es
pachi81 May 30, 2024
8e962e7
Update PS images
pachi81 May 30, 2024
0943f8f
v44
pachi81 May 30, 2024
21a0cad
Revert "v44"
pachi81 May 31, 2024
a29267e
v45
pachi81 May 31, 2024
8b35d91
Update strings.xml PL
froster82 Jun 1, 2024
16a6211
Merge remote-tracking branch 'origin/develop' into develop
pachi81 Jun 1, 2024
df383c9
Update PS images
pachi81 Jun 1, 2024
36dad0b
Update strings (LibreLinkUp)
pachi81 Jun 1, 2024
863e4a8
More alarm output
pachi81 Jun 1, 2024
7d45624
Change LibreLink to LibreLinkUp
pachi81 Jun 1, 2024
4211e92
Update PS images
pachi81 Jun 1, 2024
eb6ea4c
v46
pachi81 Jun 1, 2024
119ac4d
Add librelink package
pachi81 Jun 1, 2024
26fb2f1
Update ps wear images
pachi81 Jun 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions auto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id 'org.jetbrains.kotlin.android'
}

project.ext.set("releasePath", "D:/Daten/Michel/OneDrive/Projekte/Release")

android {
namespace 'de.michelinside.glucodataauto'
compileSdk rootProject.compileSdk
Expand All @@ -12,7 +14,7 @@ android {
minSdk rootProject.minSdk
targetSdk rootProject.targetSdk
versionCode 1025
versionName "0.9.10"
versionName "1.0-beta1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand All @@ -25,8 +27,11 @@ android {
resValue "string", "app_name", "GlucoDataAuto"
}
dev_release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-dev-rules.pro'
versionNameSuffix '-dev'
resValue "string", "app_name", "GlucoDataAuto"
signingConfig signingConfigs.debug
}
debug {
minifyEnabled false
Expand Down Expand Up @@ -67,9 +72,9 @@ android {
}

dependencies {
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.11.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.joaomgcd:taskerpluginlibrary:0.4.4'
implementation project(path: ':common')
Expand Down
32 changes: 32 additions & 0 deletions auto/proguard-dev-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-dontwarn **
-keep class **
-keepclassmembers class *{*;}
-keepattributes *

# --------------------------------------------------------------------
# REMOVE all debug log messages
# --------------------------------------------------------------------
-assumenosideeffects class android.util.Log {
public static *** v(...);
}
4 changes: 3 additions & 1 deletion auto/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
android:value="" />
</activity>
<activity
android:name=".SettingsActivity"
android:name=".preferences.SettingsActivity"
android:label="@string/menu_settings"
android:parentActivityName=".MainActivity"
tools:ignore="LockedOrientationActivity">
Expand Down Expand Up @@ -104,6 +104,8 @@
</intent-filter>
</receiver>
<receiver android:name="de.michelinside.glucodatahandler.common.tasks.TimeAlarmReceiver" />
<receiver android:name="de.michelinside.glucodatahandler.common.tasks.SourceAlarmReceiver" />
<receiver android:name="de.michelinside.glucodatahandler.common.receiver.InternalActionReceiver" />

<service
android:name=".android_auto.CarMediaBrowserService"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ import de.michelinside.glucodatahandler.common.notification.Channels
import de.michelinside.glucodatahandler.common.notifier.InternalNotifier
import de.michelinside.glucodatahandler.common.notifier.NotifySource
import de.michelinside.glucodatahandler.common.tasks.BackgroundWorker
import de.michelinside.glucodatahandler.common.tasks.SourceTaskService
import de.michelinside.glucodatahandler.common.tasks.TimeTaskService
import de.michelinside.glucodatahandler.common.utils.Utils
import de.michelinside.glucodatahandler.common.utils.PackageUtils

class GlucoDataServiceAuto: Service() {
companion object {
Expand All @@ -37,7 +38,8 @@ class GlucoDataServiceAuto: Service() {
if(!init) {
Log.v(LOG_ID, "init called")
GlucoDataService.context = context
TimeTaskService.useWorker = true
//TimeTaskService.useWorker = true
//SourceTaskService.useWorker = true
ReceiveData.initData(context)
CarConnection(context.applicationContext).type.observeForever(GlucoDataServiceAuto::onConnectionStateUpdated)
init = true
Expand Down Expand Up @@ -91,8 +93,9 @@ class GlucoDataServiceAuto: Service() {
fun startDataSync(context: Context) {
try {
if (dataSyncCount == 0) {
Log.d(LOG_ID, "startDataSync")
Log.d(LOG_ID, "startDataSync count: $dataSyncCount")
TimeTaskService.run(context)
SourceTaskService.run(context)
sendStateBroadcast(context, true)
}
dataSyncCount++
Expand Down Expand Up @@ -163,7 +166,7 @@ class GlucoDataServiceAuto: Service() {
Log.d(LOG_ID, "onStartCommand called")
super.onStartCommand(intent, flags, startId)
val isForeground = intent.getBooleanExtra(Constants.SHARED_PREF_FOREGROUND_SERVICE, false)
if (isForeground && !isForegroundService && Utils.checkPermission(this, android.Manifest.permission.POST_NOTIFICATIONS, Build.VERSION_CODES.TIRAMISU)) {
if (isForeground && !isForegroundService) {
Log.i(LOG_ID, "Starting service in foreground!")
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R)
startForeground(NOTIFICATION_ID, getNotification(), ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC)
Expand Down Expand Up @@ -196,7 +199,7 @@ class GlucoDataServiceAuto: Service() {
private fun getNotification(): Notification {
Channels.createNotificationChannel(this, ChannelType.ANDROID_AUTO_FOREGROUND)

val pendingIntent = Utils.getAppIntent(this, MainActivity::class.java, 11, false)
val pendingIntent = PackageUtils.getAppIntent(this, MainActivity::class.java, 11, false)

return Notification.Builder(this, ChannelType.ANDROID_AUTO_FOREGROUND.channelId)
.setContentTitle(getString(de.michelinside.glucodatahandler.common.R.string.activity_main_car_connected_label))
Expand Down
Loading