Comments (2)
This is an expected behaviour, as you can't select a selected item. And this was specifically designed during one of the first android versions cause a lot of people were complaining on how this widget worked on android (android would send 'onSelected' while rendering widget with a selected item which was causing sending commands when page loaded). If you use it for something like scenarios, I would recommend to set autoupdate=off for corresponding item so that nothing will be ever selected. Then, every time you press an item a command will be sent.
from openhab-android.
Hello Victor!
Thank you for your answer(s). I am/was aware of the “sending command on page load” issue. I’ve worked around the problem by simply using a ‘sendUpdate(Item)’ at the end of every rule which is fired from the a drop down box. There’s a dummy value which does nothing and is called “[Select…]” in all the menus now and that dummy value is set on the menu’s Item.
How about the feature request for the “rotation toggle” within the HABDroid app? If you re-orient the device, the page (and/or sitemap) is reloaded, which in my opinion is not necessary. A simple toggle in the configuration menu would be awesome.
Once again, thanks, you’re doing a great job!
Kind regards,
PelliX
Administrator
@Pel.Net Enterprises
@PEL.NET
Email: [email protected]
Web: http://www.pelnet.eu/ mailto:[email protected]
Our company accepts no liability for the content of this email, or for
the consequences of any actions taken on the basis of the information
provided, unless that information is subsequently confirmed in writing.
Any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of the company.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
1994 - 2013 @Pel.Net, Enschede, Netherlands, http://www.pelnet.eu/
P Please consider the environment - do you really need to print this email?
From: belovictor [mailto:[email protected]]
Sent: Monday, September 08, 2014 19:22
To: openhab/openhab.android
Cc: PelNet
Subject: Re: [openhab.android] Selection item limitations (#12)
This is an expected behaviour, as you can't select a selected item. And this was specifically designed during one of the first android versions cause a lot of people were complaining on how this widget worked on android (android would send 'onSelected' while rendering widget with a selected item which was causing sending commands when page loaded). If you use it for something like scenarios, I would recommend to set autoupdate=off for corresponding item so that nothing will be ever selected. Then, every time you press an item a command will be sent.
—
Reply to this email directly or view it on GitHub #12 (comment) . https://github.com/notifications/beacon/8432844__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNTgxNjEyOCwiZGF0YSI6eyJpZCI6Mzk1MTM2NTd9fQ==--b9f3cc7cd289cbc528bafa9eb758a978904bb420.gif
from openhab-android.
Related Issues (20)
- Summary notification not updated when notification is dismissed
- Your app is not compliant with Google Play Policies (openHAB)
- Main UI shows blank page in remote mode HOT 9
- Other sitemaps not shown in side menu HOT 5
- Icons still not updating as expected HOT 28
- Enhancement: Bazel Build Migration
- Don't require HTTP Basic Authentication enabled HOT 2
- Release version 3.11
- Release version 3.12
- cannot connect over HTTPS: Socket creation failed HOT 4
- metadata/android/en-US/full_description.txt: fullstop at end of sentences HOT 2
- Nearly Invisible Snackbar HOT 6
- Loading of sitemap hangs - exceptions on OH server HOT 13
- User must validate twice the certificate of the server HOT 2
- Run lint in CI HOT 1
- SSE failure causes crash
- Dependency Dashboard
- Release version 3.13
- Material icons containing "_" not rendered HOT 3
- support press & release buttons
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openhab-android.