Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions runner/monitor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* Fixes missing IntentMonitor for startActivity with user overload. Now it's
possible to intercept intents started with startActivityAsUser.

* Adds missing override of an existing callActivityOnCreate method with
PersistableBundle.

**New Features**

**Breaking Changes**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import android.os.IBinder;
import android.os.Looper;
import android.os.MessageQueue.IdleHandler;
import android.os.PersistableBundle;
import android.os.UserHandle;
import android.util.Log;
import androidx.annotation.Nullable;
Expand Down Expand Up @@ -733,6 +734,14 @@ public void callActivityOnCreate(Activity activity, Bundle bundle) {
lifecycleMonitor.signalLifecycleChange(Stage.CREATED, activity);
}

@Override
public void callActivityOnCreate(
Activity activity, Bundle bundle, PersistableBundle persistentState) {
lifecycleMonitor.signalLifecycleChange(Stage.PRE_ON_CREATE, activity);
super.callActivityOnCreate(activity, bundle, persistentState);
lifecycleMonitor.signalLifecycleChange(Stage.CREATED, activity);
}

// NOTE: we need to keep a count of activities between the start
// and stop lifecycle internal to our instrumentation. Exiting the test
// process with activities in this state can cause crashes/flakiness
Expand Down
Loading