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

Commit 112f0af6 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Migrate from android::String isEmpty to empty [camera]

This empty method is different from the old one - it aligns with
std::string definition.

Bug: 295394788
Test: make checkbuild
Change-Id: I5716c283b6fb478acbcb62991700d5f971b6f54c
parent 34b915e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -874,7 +874,7 @@ static jstring android_hardware_Camera_getParameters(JNIEnv *env, jobject thiz)
    if (camera == 0) return 0;

    String8 params8 = camera->getParameters();
    if (params8.isEmpty()) {
    if (params8.empty()) {
        jniThrowRuntimeException(env, "getParameters failed (empty parameters)");
        return 0;
    }
+1 −1
Original line number Diff line number Diff line
@@ -526,7 +526,7 @@ static void CameraMetadata_dump(JNIEnv *env, jclass thiz, jlong ptr) {
                    "Failed to read from fd (errno = %#x, message = '%s')",
                    errno, strerror(errno));
            //return;
        } else if (!logLine.isEmpty()) {
        } else if (!logLine.empty()) {
            ALOGD("%s", logLine.string());
        }