Commit 53e40a9e authored by David Faure's avatar David Faure
Browse files

Fix crash on startup on Android.

Summary:
_ZN22SolidBrightnessBackendC1EP7QObject symbol not found.

Commit 1466a25c removed compilation of solidbrightnessbackend.cpp on
Android, so this code now uses a class that's not part of the build.

Test Plan: Running on Android now works

Reviewers: vkrause, nicolasfella

Reviewed By: vkrause

Differential Revision: https://phabricator.kde.org/D17763
parent 0d24aa07
......@@ -19,14 +19,14 @@
#include <QDebug>
#ifdef Q_OS_LINUX
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
#include "solidbrightnessbackend.h"
#endif
BrightnessManager::BrightnessManager(QObject *parent)
: QObject(parent)
{
#ifdef Q_OS_LINUX
#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
m_backend = new SolidBrightnessBackend(this);
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment