We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26526e6 commit 8799bddCopy full SHA for 8799bdd
src/Receive/ReceiveFragment.cs
@@ -302,14 +302,13 @@ void InitializePlatform()
302
);
303
}
304
305
- // ToDo: Fix cancellation on finish
306
- //public override void Finish()
307
- //{
308
- // _cancellationTokenSource?.Cancel();
309
- // _cdp?.Dispose();
310
- // NearShareReceiver.Unregister();
311
- // base.Finish();
312
- //}
+ public override void OnDestroy()
+ {
+ _cancellationTokenSource?.Cancel();
+ _cdp?.Dispose();
+ NearShareReceiver.Unregister();
+ base.OnDestroy();
+ }
313
314
void OnTransfer(TransferToken transfer)
315
=> RunOnUiThread(() => _notifications.Add(transfer));
0 commit comments