unregister screen off broadcast receiver in PasswordActivity.OnDestroy()

This commit is contained in:
Philipp Crocoll
2017-12-29 07:31:20 +01:00
parent c8d56a237b
commit 577febe3b7

View File

@@ -841,6 +841,8 @@ namespace keepass2android
behavior.OnNestedFling(FindViewById<CoordinatorLayout>(Resource.Id.main_content), appbarLayout, null, 0, 200, true); behavior.OnNestedFling(FindViewById<CoordinatorLayout>(Resource.Id.main_content), appbarLayout, null, 0, 200, true);
} }
protected override void OnCreate(Bundle savedInstanceState) protected override void OnCreate(Bundle savedInstanceState)
{ {
_activityDesign.ApplyTheme(); _activityDesign.ApplyTheme();
@@ -2055,6 +2057,7 @@ namespace keepass2android
protected override void OnDestroy() protected override void OnDestroy()
{ {
UnregisterReceiver(_intentReceiver);
base.OnDestroy(); base.OnDestroy();
if (_killOnDestroy) if (_killOnDestroy)
Process.KillProcess(Process.MyPid()); Process.KillProcess(Process.MyPid());