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

Commit 176e6509 authored by Phil Dubach's avatar Phil Dubach
Browse files

Clear singleton reference during JetPlayer.release()

Only one JetPlayer instance is supported at a time. A singleton reference is
created and returned in JetPlayer.getInstance(). When calling release() on the
instance, the corresponding native player is finalized.  Therefore, release()
must also clear the singleton reference, so that any subsequent call to
getInstance() re-initializes the native player.
parent f4fbdfa5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -183,6 +183,7 @@ public class JetPlayer
     */
    public void release() {
        native_release();
        singletonRef = null;
    }