Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable find my phone on Ubuntu Touch #356

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions daemon/daemon.pro
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ flavor_silica {
calendar
} else:flavor_uuitk {
DEFINES += UUITK_EDITION
LIBS += -lpulse-simple
PKGCONFIG += libpulse
WATCHFISH_FEATURES += music \
voicecall \
notificationmonitor \
Expand Down
11 changes: 8 additions & 3 deletions daemon/src/deviceinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <KDb3/KDbDriverManager>
#include <KDb3/KDbTransactionGuard>

#ifdef MER_EDITION_SAILFISH
#if defined(MER_EDITION_SAILFISH) || defined(UUITK_EDITION)
#include <pulse/simple.h>
#include <pulse/error.h>
#endif
Expand Down Expand Up @@ -684,7 +684,7 @@ void DeviceInterface::findDevice()

m_playedSounds++;

#ifdef MER_EDITION_SAILFISH
#if defined(MER_EDITION_SAILFISH) || defined(UUITK_EDITION)

/* The Sample format to use */
static const pa_sample_spec ss = {
Expand All @@ -696,11 +696,16 @@ void DeviceInterface::findDevice()
pa_simple *s = NULL;
int error;


#ifdef MER_EDITION_SAILFISH
QFile file("/usr/share/harbour-amazfish/chirp.raw");
#else // elif defined(UUITK_EDITION)
QFile file("/opt/click.ubuntu.com/uk.co.piggz.amazfish/current/share/harbour-amazfish/chirp.raw");
#endif

if(!file.open(QIODevice::ReadOnly))
{
qDebug() << "Unable to open chirp sound";
qWarning() << Q_FUNC_INFO << "Unable to open chirp sound";
return;
}

Expand Down
Loading