Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
pachi81 committed Mar 13, 2024
1 parent 6382dcc commit e4674f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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

0 comments on commit e4674f4

Please sign in to comment.