diff --git a/app/src/main/java/com/futo/platformplayer/activities/PolycentricCreateProfileActivity.kt b/app/src/main/java/com/futo/platformplayer/activities/PolycentricCreateProfileActivity.kt index 32b4f42a889609b6e693ab70ae0cd20384aaf40b..4986a186dfec188ae2b15ea90ee585d80edcee6d 100644 --- a/app/src/main/java/com/futo/platformplayer/activities/PolycentricCreateProfileActivity.kt +++ b/app/src/main/java/com/futo/platformplayer/activities/PolycentricCreateProfileActivity.kt @@ -17,9 +17,7 @@ import com.futo.platformplayer.states.StateApp import com.futo.platformplayer.states.StatePolycentric import com.futo.polycentric.core.ProcessHandle import com.futo.polycentric.core.Store -import com.futo.polycentric.core.Synchronization import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.launch import kotlinx.coroutines.withContext @@ -71,6 +69,7 @@ class PolycentricCreateProfileActivity : AppCompatActivity() { try { processHandle = ProcessHandle.create(); Store.instance.addProcessSecret(processHandle.processSecret); + processHandle.addServer("https://srv1-stg.polycentric.io"); processHandle.setUsername(username); StatePolycentric.instance.setProcessHandle(processHandle); diff --git a/app/src/main/java/com/futo/platformplayer/views/behavior/GestureControlView.kt b/app/src/main/java/com/futo/platformplayer/views/behavior/GestureControlView.kt index 7f7d2429953096c7905d0c9eb78b3f33d51be06a..4b39b1cd2b6cba79dc8fc63b9a4433d6acf4d7c3 100644 --- a/app/src/main/java/com/futo/platformplayer/views/behavior/GestureControlView.kt +++ b/app/src/main/java/com/futo/platformplayer/views/behavior/GestureControlView.kt @@ -93,6 +93,8 @@ class GestureControlView : LinearLayout { private val _gestureController: GestureDetectorCompat; + val isUserGesturing get() = _rewinding || _skipping || _adjustingBrightness || _adjustingSound || _adjustingFullscreenUp || _adjustingFullscreenDown || _isPanning || _isZooming; + val onSeek = Event1<Long>(); val onBrightnessAdjusted = Event1<Float>(); val onPan = Event2<Float, Float>();