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

Android: Activity "onRestart" callback no longer invoked as of 8.0.0.RC

    Details

    • Story Points:
      5
    • Sprint:
      2019 Sprint 5

      Description

      Summary:
      As of Titanium 8.0.0.RC, the Activity callback assigned to onRestart is no longer invoked.

      This is a regression.

      The "onRestart" callback is supposed to be invoked after the activity's "onStop" to indicate that the activity window is being resumed from the background.

      Steps to reproduce:

      1. Build and run the below code on Android.
      2. Wait for the app to appear onscreen
      3. Press the "Home" button to suspend the app.
      4. Resume the app.
      5. Observe the log and notice that "onRestart" was not logged.

      var window = Ti.UI.createWindow();
      window.add(Ti.UI.createLabel({ text: "Activity onRestart Test" }));
      window.activity.onRestart = function() {
      	Ti.API.info("@@@ Activity.onRestart() called.");
      	Ti.UI.createNotification({
      		message: "Activity.onRestart() called.",
      		duration: Ti.UI.NOTIFICATION_DURATION_SHORT,
      	}).show();
      };
      window.open();
      

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code