You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@wonday Here is Kotlin code needed for Android installation:
// MainActivity.kt
import android.content.Intent;
import android.content.res.Configuration;
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
val intent = Intent("onConfigurationChanged")
intent.putExtra("newConfig", newConfig)
sendBroadcast(intent)
}
// MainApplication.kt
import org.wonday.orientation.OrientationActivityLifecycle
override fun onCreate() {
...
// ADD AT THE END OF THE FUNCTION
registerActivityLifecycleCallbacks(OrientationActivityLifecycle.getInstance())
}
The text was updated successfully, but these errors were encountered:
mi5ha
changed the title
Here is Kotlin code for installation
Here is Kotlin code for Android installation
Dec 14, 2023
@wonday Here is Kotlin code needed for Android installation:
The text was updated successfully, but these errors were encountered: