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

Android: Ti.UI.createRefreshControl.beginRefreshing() does not fire 'refreshstart'

    Details

    • Story Points:
      2
    • Sprint:
      2018 Sprint 10 SDK

      Description

      • beginRefreshing() does not fire the refreshstart event

      TEST CASE

      var window, control, listView;
       
      window = Ti.UI.createWindow();
       
      window.addEventListener('open', function () {
          control.beginRefreshing();
      });
       
      control = Ti.UI.createRefreshControl();
       
      listView = Ti.UI.createListView({
          refreshControl: control
      });
       
      control.addEventListener('refreshstart', function () {
          Ti.API.info('refreshstart');
          setTimeout(function () {
              Ti.API.info('ending...');
              control.endRefreshing();
          }, 2000);
      });
       
      control.addEventListener('refreshend', function () {
          Ti.API.info('refreshend');
          alert('DONE!');
      });
       
      window.add(listView);
      window.open();
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              gmathews Gary Mathews
              Reviewer:
              Joshua Quick
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code