Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26104

Android: Removing and re-adding drop-down picker resets last selection

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.2.0
    • Fix Version/s: Release 7.5.0
    • Component/s: Android
    • Labels:
    • Environment:

      Android

    • Sprint:
      2018 Sprint 20 SDK

      Description

      Starting with Ti 7.x incl. 7.1.1GA on Android the pickerview, when inside a tableview, resets its selected value after events like orientationchange, scroll outside of window and back in or focus on another ui element.

      (works perfectly on ios and used to work perfectly on Ti<=6.x)

      example code:

      {{
      var currentwindow = Ti.UI.createWindow({
      });

      var tabledata = [];

      var picker = Ti.UI.createPicker(

      { top:20 }

      );

      var data = [];
      data[0]=Ti.UI.createPickerRow(

      {title:'Bananas'}

      );
      data[1]=Ti.UI.createPickerRow(

      {title:'Strawberries'}

      );
      data[2]=Ti.UI.createPickerRow(

      {title:'Mangos'}

      );

      picker.add(data);

      var myrow=Ti.UI.createTableViewRow(

      { 'height' : '50sp' }

      );

      myrow.add(picker);

      tabledata.push(myrow);

      var infotableview = Titanium.UI.createTableView(

      { data:tabledata, }

      );

      currentwindow.add(infotableview);

      //currentwindow.add(picker);

      }}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ybanev Yordan Banev
                Reporter:
                adegreiff Alexander de Greiff
                Reviewer:
                Joshua Quick
                Tester:
                Keerthi Mahalingam
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6381
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code