Skip to content

Commit 567cf8d

Browse files
mathiascodeCl1608Ho
authored andcommitted
Stop service before updating button (#41)
1 parent 9aed0b6 commit 567cf8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/cuberite/android/services/CuberiteService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public void onReceive(Context context, Intent intent) {
241241
}
242242

243243
// Update button state
244-
LocalBroadcastManager.getInstance(this).sendBroadcast(new Intent("CuberiteService.callback"));
245244
stopSelf();
245+
LocalBroadcastManager.getInstance(this).sendBroadcast(new Intent("CuberiteService.callback"));
246246
}
247247
}

0 commit comments

Comments
 (0)