Skip to content
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: 1 addition & 1 deletion android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<meta-data android:name="android.max_aspect" android:value="2.5"/>
</activity>
</application>
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21"/>
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>

<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
Expand Down
1 change: 0 additions & 1 deletion core/os/os-android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ FILE *fopen_utf8(const char *path, const char *mode)
{
env->ExceptionDescribe();
env->ExceptionClear();
return nullptr;
}

QAndroidJniObject parcelFileDescriptor = contentResolver
Expand Down
2 changes: 1 addition & 1 deletion core/usblink.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ void put_file_next(struct packet *in) {
}

gui_status_printf("Send complete");
throttle_timer_on();
put_file_state = DONE;
break;
case RECVING_FF_00:
Expand Down Expand Up @@ -277,6 +276,7 @@ void put_file_next(struct packet *in) {
gui_usblink_changed(false);

teardown:
throttle_timer_on();
put_file_state = 0;
fclose(put_file);
put_file = NULL;
Expand Down
1 change: 1 addition & 0 deletions core/usblink_cx2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ bool usblink_cx2_send_navnet(const uint8_t *data, uint16_t size)

int len = sizeof(NNSEMessage) + size;
NNSEMessage *msg = reinterpret_cast<NNSEMessage*>(malloc(len));
msg->misc = 0;
msg->service = StreamService;
msg->src = AddrMe;
msg->dest = AddrCalc;
Expand Down
1 change: 1 addition & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ void MainWindow::debugStr(QString str)

void MainWindow::debugCommand()
{
emit debugStr(QStringLiteral("> %1\n").arg(ui->lineEdit->text()));
emit debuggerCommand(ui->lineEdit->text());
ui->lineEdit->clear();
}
Expand Down
2 changes: 2 additions & 0 deletions qml/ConfigPageDebug.qml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ ColumnLayout {
}

FBLabel {
Layout.maximumWidth: parent.width
text: qsTr("Remote access to internal debugger")
wrapMode: Text.WordWrap
font.pixelSize: TextMetrics.title2Size
Layout.topMargin: 10
Layout.bottomMargin: 5
Expand Down
2 changes: 2 additions & 0 deletions qml/ConfigPageFileTransfer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ ColumnLayout {
}

RowLayout {
Layout.maximumWidth: parent.width

Button {
text: qsTr("Send a file")
// If this button is disabled, the transfer directory textinput has the focus again,
Expand Down
5 changes: 1 addition & 4 deletions qml/ConfigPageKits.qml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ ColumnLayout {
}

GroupBox {
id: groupBox1
Layout.minimumWidth: parent.width
Layout.maximumWidth: parent.width
Layout.fillWidth: true
Layout.bottomMargin: -1
title: qsTr("Kit Properties")


GridLayout {
anchors.fill: parent
columns: (width < 550 || Qt.platform.os === "android") ? 2 : 4
Expand Down
2 changes: 2 additions & 0 deletions qml/Firebird/UIComponents/KitList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Rectangle {
anchors.margins: parent.border.width
anchors.fill: parent

activeFocusOnTab: true

ListView {
id: listView

Expand Down
5 changes: 1 addition & 4 deletions qml/MobileUIConfig.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ Item {

Tab {
title: qsTranslate("ConfigPagesModel", rep.model.get(index).title)

Loader {
source: file
}
source: file
}
}
}
Expand Down
8 changes: 7 additions & 1 deletion qmlbridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,9 @@ QUrl QMLBridge::dir(QString path)

QString QMLBridge::toLocalFile(QUrl url)
{
// Pass through Android content url, see fopen_utf8
if(url.scheme() == QStringLiteral("content"))
return url.toString(); // Pass through Android content url
return url.toString(QUrl::FullyEncoded);

return url.toLocalFile();
}
Expand Down Expand Up @@ -359,6 +360,9 @@ void QMLBridge::switchUIMode(bool mobile_ui)

void QMLBridge::setActive(bool b)
{
if(is_active == b)
return;

if(b)
{
connect(&emu_thread, SIGNAL(speedChanged(double)), this, SLOT(speedChanged(double)), Qt::QueuedConnection);
Expand Down Expand Up @@ -388,6 +392,8 @@ void QMLBridge::setActive(bool b)
disconnect(&emu_thread, SIGNAL(resumed(bool)), this, SLOT(resumed(bool)));
disconnect(&emu_thread, SIGNAL(suspended(bool)), this, SLOT(suspended(bool)));
}

is_active = b;
}

void QMLBridge::saveKits()
Expand Down
1 change: 1 addition & 0 deletions qmlbridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public slots:
double speed = 0;
KitModel kit_model;
QSettings settings;
bool is_active = false;
};

extern QMLBridge *the_qml_bridge;
Expand Down