Change class variable to local variable
This commit is contained in:
@@ -9,11 +9,9 @@ import com.github.gotify.service.WebSocketService;
|
|||||||
|
|
||||||
public class BootCompletedReceiver extends BroadcastReceiver {
|
public class BootCompletedReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
private Settings settings;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
settings = new Settings(context);
|
Settings settings = new Settings(context);
|
||||||
|
|
||||||
if (!settings.tokenExists()) {
|
if (!settings.tokenExists()) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user