From d6257f734dc02b044f64b099ba6174cfc40cbd19 Mon Sep 17 00:00:00 2001 From: JZacharie Date: Sun, 26 Jun 2022 07:31:48 +0200 Subject: [PATCH] Update MainActivity.kt --- .../iot/mqtt/alarmpanel/ui/activities/MainActivity.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 +}