Skip to content

[Duplications] [1168] Setting view not updated after changing the behavior #1312

Closed

Description

@rperezb

With the branch: #1168

STEPS:
1.- Access to settings:
2.- As Behavior it´s shown: Do nothing
3.- Tap on behavior and change it to move file to OC folder

EXPECTED BEHAVIOR
On the settings view it´s shown: move file to OC folder

CURRENT BEHAVIOR
On the settings view it´s shown: do nothing
If you change the device orientation, it´s updated

Device
HTC 4.1.2

Activity

  1. tobiasKaminsky commented on Nov 26, 2015

    @tobiasKaminsky
    Contributor

    This is working for me with nexus 4 and nexus 5 in emulator.
    Maybe @AndyScherzinger (our design dev :) ) has an idea?

  2. AndyScherzinger commented on Nov 26, 2015

    @AndyScherzinger
    Contributor

    I'll have a look, but need proper internet access for cloning/checkout.

  3. rperezb commented on Nov 27, 2015

    @rperezb
    Author

    Double check it, the view on a mobile device is not refreshed, however, on a tablet, it's

  4. tobiasKaminsky commented on Nov 27, 2015

    @tobiasKaminsky
    Contributor

    What devices and android versions have you tried?

  5. tobiasKaminsky commented on Nov 28, 2015

    @tobiasKaminsky
    Contributor

    Where do you have merged your commit? I cannot find it ;)
    I think it belongs in #1168?

  6. AndyScherzinger commented on Nov 28, 2015

    @AndyScherzinger
    Contributor

    Exactly, see right be my comment here: #1168 (comment)

  7. tobiasKaminsky commented on Nov 28, 2015

    @tobiasKaminsky
    Contributor

    Ah. Thought it is a new commit.
    So, the problem exists even with your fix?

  8. AndyScherzinger commented on Nov 28, 2015

    @AndyScherzinger
    Contributor

    I didn't tryout any of the possible fixes described here: #1312 (comment)
    since we have summary="%s" Android should take care of it, but it seems that at least on @rperezb device (HTC) with Android 4.1.2 it doesn't
    --> so I am not sure how to fix the summary display (anything else seems to work for her). It always works for my and you, so I can only add some code and @rperezb would have to test it.

  9. rperezb commented on Nov 30, 2015

    @rperezb
    Author

    Hey, I have checked it with:
    View not refreshed, mobile handsets

    • Galaxy Nexus 4.2.1
    • Galaxy S3, 4.1.2
    • HTC ONE 4.3
    • Tablet Nexus 7 4.3

    View refreshed:

    • Tablet nexus Android 6

    (Code 5d77cfc )

  10. AndyScherzinger commented on Nov 30, 2015

    @AndyScherzinger
    Contributor

    Good morning @rperezb. Does that mean it only works on the tablet for you?

    You refered to the path variable in your comment, is this related to the list selection? @tobiasKaminsky ?

  11. rperezb commented on Nov 30, 2015

    @rperezb
    Author

    hey @AndyScherzinger checked with another device, a tablet Nexus 7 Android 4.3, the view is not refreshed till you change the device orientation or go to another view and go back to settings (as with the other devices)

  12. added a commit that references this issue on Nov 30, 2015
  13. AndyScherzinger commented on Nov 30, 2015

    @AndyScherzinger
    Contributor

    @rperezb I think I found the mistake, it is related to Android versions rather than tablet/phone. I was relying on the change listener mechanism of setValue which is a feature that has been introduced with Android 4.4 (API 19). So I added some pre API-19 handling for this :) - For details please see 4f7d416 committed against #1168 branch and already pushed to the beta branch @tobiasKaminsky :)

    Please let us know if this works for you 😃 (worked for me for 4.0.3 in the emulator)

  14. rperezb commented on Dec 1, 2015

    @rperezb
    Author

    great!

    it worked
    👏 👏

  15. AndyScherzinger commented on Dec 1, 2015

    @AndyScherzinger
    Contributor

    Glad to here that 😃

  16. added this to the milestone on Dec 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions