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

Fix crash #140

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions auto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "de.michelinside.glucodataauto"
minSdk rootProject.minSdk
targetSdk rootProject.targetSdk
versionCode 1022
versionName "0.9.9.7"
versionCode 1025
versionName "0.9.10"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ plugins {
id 'org.jetbrains.kotlin.android' version '1.8.20' apply false
}

project.ext.set("versionCode", 25)
project.ext.set("versionName", "0.9.10")
project.ext.set("versionCode", 26)
project.ext.set("versionName", "0.9.11")
project.ext.set("compileSdk", 34)
project.ext.set("targetSdk", 33)
project.ext.set("minSdk", 26)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ abstract class GlucoDataService(source: AppSource) : WearableListenerService() {
// default on wear and phone
true//sharedPref.getBoolean(Constants.SHARED_PREF_FOREGROUND_SERVICE, true)
)
context.startForegroundService(serviceIntent)
context.startService(serviceIntent)
} catch (exc: Exception) {
Log.e(
LOG_ID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class WaerActivity : AppCompatActivity(), NotifierInterface {
val serviceIntent = Intent(this, GlucoDataServiceWear::class.java)
if (isChecked) {
serviceIntent.putExtra(Constants.SHARED_PREF_FOREGROUND_SERVICE, true)
this.startForegroundService(serviceIntent)
this.startService(serviceIntent)
} else {
serviceIntent.putExtra(Constants.ACTION_STOP_FOREGROUND, true)
this.startService(serviceIntent)
Expand Down