Fix android device controls and connectingpage
This commit is contained in:
parent
5456384711
commit
08014c7071
@ -212,7 +212,7 @@ public class NymeaAppServiceConnection implements ServiceConnection {
|
|||||||
m_service.transact(1, parcel, retParcel, 0);
|
m_service.transact(1, parcel, retParcel, 0);
|
||||||
thingsList = retParcel.readString();
|
thingsList = retParcel.readString();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.d(TAG, "Error fetching things from NymeaAppService");
|
Log.d(TAG, "Error fetching things from NymeaAppService: " + e.toString());
|
||||||
onError();
|
onError();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,10 +23,11 @@ NymeaAppService::NymeaAppService(int argc, char **argv):
|
|||||||
AWSClient::instance()->setConfig(settings.value("cloudEnvironment").toString());
|
AWSClient::instance()->setConfig(settings.value("cloudEnvironment").toString());
|
||||||
discovery->setAwsClient(AWSClient::instance());
|
discovery->setAwsClient(AWSClient::instance());
|
||||||
|
|
||||||
|
settings.beginGroup("ConfiguredHosts");
|
||||||
for (int i = 0; i < 5; i++) {
|
foreach (const QString &childGroup, settings.childGroups()) {
|
||||||
settings.beginGroup(QString("tabSettings%1").arg(i));
|
settings.beginGroup(childGroup);
|
||||||
QUuid lastConnected = settings.value("lastConnectedHost").toUuid();
|
QUuid lastConnected = settings.value("uuid").toUuid();
|
||||||
|
QString cachedName = settings.value("cachedName").toString();
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
if (lastConnected.isNull()) {
|
if (lastConnected.isNull()) {
|
||||||
@ -60,6 +61,7 @@ NymeaAppService::NymeaAppService(int argc, char **argv):
|
|||||||
sendNotification("ReadyStateChanged", params);
|
sendNotification("ReadyStateChanged", params);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
settings.endGroup();
|
||||||
|
|
||||||
qDebug() << "NymeaAppService started.";
|
qDebug() << "NymeaAppService started.";
|
||||||
|
|
||||||
|
|||||||
@ -570,6 +570,6 @@ ApplicationWindow {
|
|||||||
antialiasing: true
|
antialiasing: true
|
||||||
smooth: true
|
smooth: true
|
||||||
sourceSize.width: Math.max(width, height)
|
sourceSize.width: Math.max(width, height)
|
||||||
sourceSize.height: sourceSize.width
|
sourceSize.height: Math.max(width, height)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,18 +41,18 @@ Page {
|
|||||||
|
|
||||||
signal cancel()
|
signal cancel()
|
||||||
|
|
||||||
ColorIcon {
|
ProgressButton {
|
||||||
anchors { top: parent.top; right: parent.right; margins: app.margins }
|
anchors { top: parent.top; left: parent.left; margins: Style.margins }
|
||||||
height: Style.iconSize
|
imageSource: "/ui/images/navigation-menu.svg"
|
||||||
width: height
|
longpressEnabled: false
|
||||||
name: "../images/logs.svg"
|
onClicked: mainMenu.open()
|
||||||
|
}
|
||||||
|
|
||||||
|
ProgressButton {
|
||||||
|
anchors { top: parent.top; right: parent.right; margins: Style.margins }
|
||||||
|
imageSource: "/ui/images/logs.svg"
|
||||||
visible: settings.showHiddenOptions && AppLogController.enabled
|
visible: settings.showHiddenOptions && AppLogController.enabled
|
||||||
MouseArea {
|
onClicked: pageStack.push(Qt.resolvedUrl("../appsettings/AppLogPage.qml"))
|
||||||
anchors.fill: parent
|
|
||||||
onClicked: {
|
|
||||||
onClicked: pageStack.push(Qt.resolvedUrl("../appsettings/AppLogPage.qml"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
@ -125,10 +125,10 @@ Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
// Button {
|
||||||
text: qsTr("Cancel")
|
// text: qsTr("Cancel")
|
||||||
anchors { left: parent.left; bottom: parent.bottom; right: parent.right }
|
// anchors { left: parent.left; bottom: parent.bottom; right: parent.right }
|
||||||
anchors.margins: app.margins
|
// anchors.margins: app.margins
|
||||||
onClicked: root.cancel()
|
// onClicked: root.cancel()
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user