Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAndroidUtils.cpp
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: GPL-3.0-or-later
3 */
4#include "KisAndroidUtils.h"
5#include <QtAndroid>
6
8{
9
11{
12 // The device isn't going to change, so let's cache the slow JNI call.
13 static bool checked;
14 static bool result;
15 if (!checked) {
16 checked = true;
17 result = QAndroidJniObject::callStaticMethod<jboolean>("org/krita/android/MainActivity",
18 "looksLikeXiaomiDevice",
19 "()Z");
20 }
21 return result;
22}
23
24} // namespace KisAndroidUtils