You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our application we have two activities, DialogActivity is opened on top of MainActivity. We use Settings -> Developer Options -> Don't Keep Activities turned ON to simulate system high load. While top activity (DialogActivity) is opened - minimize the app and then open it again.
Expected Behavior
Platform.CurrentActivity should return instance of DialogActivity
Actual Behavior
Platform.CurrentActivity returns instance of MainActivity
Basic Information
Version with issue: 1.7.3
Last known good version: no version, this bug reproduces also on CurrentActivityPlugin link
Description
Steps to Reproduce
In our application we have two activities,
DialogActivity
is opened on top ofMainActivity
. We use Settings -> Developer Options -> Don't Keep Activities turned ON to simulate system high load. While top activity (DialogActivity
) is opened - minimize the app and then open it again.Expected Behavior
Platform.CurrentActivity
should return instance ofDialogActivity
Actual Behavior
Platform.CurrentActivity
returns instance ofMainActivity
Basic Information
Code snippet
Code: link
Logs: link
Looks like issue happens because paused activity also saved as current activity, which may override already resumed activity.
void Application.IActivityLifecycleCallbacks.OnActivityPaused(Activity activity) { Activity = activity; Platform.OnActivityStateChanged(activity, ActivityState.Paused); }
Seems like we don't need to update Activity when OnPause called
The text was updated successfully, but these errors were encountered: