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

Commit 3fd5fa4c authored by Wu-cheng Li's avatar Wu-cheng Li
Browse files

Fix the runtime restart due to name change.

bug:3001395
bug:3001399
Change-Id: I73fd1a63fea0807531b01ae2a754b32efffd41b1
parent a8cc20e5
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -688,8 +688,8 @@ int register_android_hardware_Camera(JNIEnv *env)
    field fields_to_find[] = {
    field fields_to_find[] = {
        { "android/hardware/Camera", "mNativeContext",   "I", &fields.context },
        { "android/hardware/Camera", "mNativeContext",   "I", &fields.context },
        { "android/view/Surface",    ANDROID_VIEW_SURFACE_JNI_ID, "I", &fields.surface },
        { "android/view/Surface",    ANDROID_VIEW_SURFACE_JNI_ID, "I", &fields.surface },
        { "android/hardware/Camera$CameraInfo", "mFacing",   "I", &fields.facing },
        { "android/hardware/Camera$CameraInfo", "facing",   "I", &fields.facing },
        { "android/hardware/Camera$CameraInfo", "mOrientation",   "I", &fields.orientation },
        { "android/hardware/Camera$CameraInfo", "orientation",   "I", &fields.orientation },
    };
    };


    if (find_fields(env, fields_to_find, NELEM(fields_to_find)) < 0)
    if (find_fields(env, fields_to_find, NELEM(fields_to_find)) < 0)