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

Commit be6abcd1 authored by Dominik Laskowski's avatar Dominik Laskowski
Browse files

core: Use ftl::Flags

Bug: 185536303
Test: Build
Change-Id: I8e1c1b08fc467980970eced28c49adb59e37a39a
parent 329ed6ef
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
#include <android_runtime/AndroidRuntime.h>
#include <android_runtime/Log.h>
#include <binder/IPCThreadState.h>
#include <ftl/cast.h>
#include <ftl/flags.h>
#include <gui/SurfaceControl.h>
#include <gui/WindowInfo.h>
#include <nativehelper/JNIHelp.h>
@@ -151,7 +151,7 @@ bool NativeInputWindowHandle::updateInfo() {
        env->DeleteLocalRef(regionObj);
    }

    const auto flags = Flags<WindowInfo::Flag>(
    const auto flags = ftl::Flags<WindowInfo::Flag>(
            env->GetIntField(obj, gInputWindowHandleClassInfo.layoutParamsFlags));
    const auto type = static_cast<WindowInfo::Type>(
            env->GetIntField(obj, gInputWindowHandleClassInfo.layoutParamsType));