Skip to content

Commit

Permalink
A note
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Mar 30, 2013
1 parent 251913e commit cad179f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ReactiveUI.Mobile/AutoSuspendActivityHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ public AutoSuspendActivityHelper(Activity hostActivity)
host.IsResuming = onResume;
host.IsUnpausing = onResume;

bool hasRecentlyCrashed = false;
host.SetupDefaultSuspendResumeFunc = new Action<ISuspensionDriver>(driver => {
driver = driver ?? RxApp.GetService<ISuspensionDriver>();
// TODO: Handle crashes here
host.ShouldInvalidateState
.SelectMany(_ => driver.InvalidateState())
.LoggedCatch(this, Observable.Return(Unit.Default), "Tried to invalidate app state")
Expand Down

0 comments on commit cad179f

Please sign in to comment.