Synchronization field must be final

This commit is contained in:
Martin Fietz 2018-01-14 17:55:25 +01:00
parent 7d98db8321
commit bf41f1713d
1 changed files with 1 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class PlayerWidgetService extends Service {
/** /**
* Controls write access to playbackservice reference * Controls write access to playbackservice reference
*/ */
private Object psLock; private final Object psLock = new Object();
/** /**
* True while service is updating the widget * True while service is updating the widget
@ -53,7 +53,6 @@ public class PlayerWidgetService extends Service {
super.onCreate(); super.onCreate();
Log.d(TAG, "Service created"); Log.d(TAG, "Service created");
isUpdating = false; isUpdating = false;
psLock = new Object();
} }
@Override @Override