Synchronization field must be final
This commit is contained in:
parent
7d98db8321
commit
bf41f1713d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue