summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorMartin Fietz <martin.fietz@gmail.com>2018-01-14 17:55:25 +0100
committerMartin Fietz <martin.fietz@gmail.com>2018-01-14 17:55:25 +0100
commitbf41f1713de55cc6db23a5e745de6a8040862988 (patch)
tree1d862ad5002d46fda5c341d52ba89db8080f9be4 /app/src
parent7d98db8321c11919adf4077aea3ea9827513aa01 (diff)
downloadAntennaPod-bf41f1713de55cc6db23a5e745de6a8040862988.zip
Synchronization field must be final
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/service/PlayerWidgetService.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/service/PlayerWidgetService.java b/app/src/main/java/de/danoeh/antennapod/service/PlayerWidgetService.java
index b5bfb1ae4..53d4aba16 100644
--- a/app/src/main/java/de/danoeh/antennapod/service/PlayerWidgetService.java
+++ b/app/src/main/java/de/danoeh/antennapod/service/PlayerWidgetService.java
@@ -38,7 +38,7 @@ public class PlayerWidgetService extends Service {
/**
* Controls write access to playbackservice reference
*/
- private Object psLock;
+ private final Object psLock = new Object();
/**
* True while service is updating the widget
@@ -53,7 +53,6 @@ public class PlayerWidgetService extends Service {
super.onCreate();
Log.d(TAG, "Service created");
isUpdating = false;
- psLock = new Object();
}
@Override