Giter Site home page Giter Site logo

Comments (2)

belovictor avatar belovictor commented on August 15, 2024

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.

PelNet avatar PelNet commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.