The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/oxr_android: Add version annotation to the VR listener

+4 -1
+4 -1
src/xrt/targets/openxr_android/src/main/java/org/freedesktop/monado/openxr_runtime/MonadoVrListener.kt
··· 9 9 package org.freedesktop.monado.openxr_runtime 10 10 11 11 import android.content.ComponentName 12 + import android.os.Build 12 13 import android.service.vr.VrListenerService 13 14 import android.util.Log 14 15 import android.widget.Toast 16 + import androidx.annotation.RequiresApi 15 17 16 - class OpenXRListener : VrListenerService() { 18 + @RequiresApi(Build.VERSION_CODES.N) 19 + class MonadoVrListener : VrListenerService() { 17 20 // Would like to override 18 21 // void onCurrentVrActivityChanged( 19 22 // ComponentName component, boolean running2dInVr, int pid)