debug_fix_screen_change #2

Merged
xsl merged 35 commits from debug_fix_screen_change into main 2026-04-26 10:58:01 +08:00
3 changed files with 12 additions and 0 deletions
Showing only changes of commit 84d567674f - Show all commits
+5
View File
@@ -162,4 +162,9 @@ Java_com_hmwl_face_1sdk_FaceActivity_ChangeStateCpp(JNIEnv *env, jobject thiz, j
{
g_Application->changeMotion(nativeString);
}
}
extern "C"
JNIEXPORT void JNICALL
Java_com_hmwl_face_1sdk_FaceActivity_StopRunning(JNIEnv *env, jobject thiz) {
g_Application->_running = false;
}
@@ -122,6 +122,12 @@ public class FaceActivity extends GameActivity implements FaceLandmarkerHelper.L
}
}
public void Stop(){
StopRunning();
}
private native void StopRunning();
// Native 方法
private native void processImageNative(ByteBuffer buffer, int width, int height,
int format, int rowStride, int pixelStride,
@@ -56,6 +56,7 @@ class MakeupActivity : FaceActivity() {
Log.d("TouchEvent", "手指按下 - X: ${event.x}, Y: ${event.y}")
if(curIndex == 1)
{
Stop();
finish();
}
}