Skip to content

Commit 6bccb19

Browse files
committed
fix onStop
1 parent 22c9631 commit 6bccb19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/org/glpi/inventory/agent/ui/ActivityMain.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ protected void onStart() {
149149
@Override
150150
protected void onStop() {
151151
super.onStop();
152-
if (broadcastReceiver != null) {
152+
if (appRestrictionChange != null) {
153153
unregisterReceiver(appRestrictionChange);
154-
broadcastReceiver = null;
154+
appRestrictionChange = null;
155155
}
156156
}
157157

0 commit comments

Comments
 (0)