← Back to team overview

touch-packages team mailing list archive

[Bug 1356434] Re: [PageHeadState] Cannot create pageheadstate with name ""

 

** No longer affects: ubuntu-ui-toolkit

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1356434

Title:
  [PageHeadState] Cannot create pageheadstate with name ""

Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Triaged

Bug description:
  PageHeadState does not accept the state name to be "". As a result
  that creates issues which requires a hack to fix it.

  1. Run the sample app attached where the default pageheadstate is called "". 
  2. Notice that when the app loads, you don't see the add button despite it being the default state that should be loaded.

  Let's say we fix this issue by naming the default state to "Default".
  We then run into another issue,

  1. Run the changed app and notice that the add button is now visible. You will also see a console message that says "State changed to: Default".
  2. Press the add button which should trigger the other pageheadstate "contact".  Console will also read "State changed to: Contact" as expected.
  3. Now press the contact button, and notice that the add button is missing again. Here the console says "State switched to: ". So it switches to the empty "" and not the default state.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1356434/+subscriptions