Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec527e5e authored by Jesse Wilson's avatar Jesse Wilson
Browse files

Fix the backups example to use a simpler lock.

Change-Id: If9a78654b0d6bc25f0a04deb8020275e5b3d91ab
parent 26650aef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -710,7 +710,7 @@ lock for the synchronized statements:</p>

<pre>
// Object for intrinsic lock
static final Object[] sDataLock = new Object[0];
static final Object sDataLock = new Object();
</pre>

<p>Then create a synchronized statement with this lock each time you read or write the files. For