Skip to content
Snippets Groups Projects
Verified Commit 99e5d16d authored by Réthelyi Bálint's avatar Réthelyi Bálint :no_mouth:
Browse files

fix notification subscription from test to prod

parent 1e2c4e99
No related branches found
No related tags found
No related merge requests found
Pipeline #18304 passed
......@@ -12,8 +12,8 @@ android {
applicationId "space.rethelyi.mosogepsch"
minSdk 21
targetSdk 31
versionCode 9
versionName "2.5.1"
versionCode 10
versionName "2.5.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
......
......@@ -88,8 +88,8 @@ fun MachineScreen(machine: Machine, onUpdate: (Boolean) -> Unit) {
val failedToSubscribe = stringResource(R.string.sub_fail)
val successfullyUnsubscribed = stringResource(R.string.unsub_success)
val failedToUnsubscribe = stringResource(R.string.unsub_fail)
val topic = "test" //machine.kind_of + machine.id
// val topic = machine.kind_of + machine.id
// val topic = "test" //machine.kind_of + machine.id
val topic = machine.kind_of + machine.id
val sharedPref = ctx.getSharedPreferences(machine.id.toString(), Context.MODE_PRIVATE)
var subscribeState by remember { mutableStateOf(sharedPref.getBoolean(machine.id.toString(), false)) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment