Skip to content

Commit

Permalink
Merge pull request #140 from pachi81/develop
Browse files Browse the repository at this point in the history
Fix crash
  • Loading branch information
pachi81 authored Mar 13, 2024
2 parents 6382dcc + e4674f4 commit 708f3df
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 708f3df

Please sign in to comment.