diff --git a/app/src/main/java/com/thanksmister/iot/mqtt/alarmpanel/ui/activities/MainActivity.kt b/app/src/main/java/com/thanksmister/iot/mqtt/alarmpanel/ui/activities/MainActivity.kt index c6eb2cd..64b4375 100644 --- a/app/src/main/java/com/thanksmister/iot/mqtt/alarmpanel/ui/activities/MainActivity.kt +++ b/app/src/main/java/com/thanksmister/iot/mqtt/alarmpanel/ui/activities/MainActivity.kt @@ -651,9 +651,10 @@ class MainActivity : BaseActivity(), */ private fun awakenDeviceForAction() { Timber.d("awakenDeviceForAction") - if (pagerAdapter.itemCount > 0) { - pagerView.currentItem = 0 - } + // disazbled to allow mqtt dashboard command working + // if (pagerAdapter.itemCount > 0) { + // pagerView.currentItem = 0 + // } } /** @@ -801,4 +802,4 @@ class MainActivity : BaseActivity(), forecastBottomSheet?.show(it, forecastBottomSheet?.tag) } } -} \ No newline at end of file +}