1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 10:35:50 +01:00

Fossil/Skagen Hybrids: Fix some preference crashes on the nightly

This commit is contained in:
José Rebelo 2023-10-14 21:33:03 +01:00
parent 6ca73259b3
commit 11de66f8e4
3 changed files with 7 additions and 5 deletions

View File

@ -150,7 +150,9 @@ public class CalibrationActivity extends AbstractGBActivity {
@Override
protected void onDestroy() {
super.onDestroy();
localBroadcastManager.sendBroadcast(new Intent(QHybridSupport.QHYBRID_COMMAND_SAVE_CALIBRATION));
localBroadcastManager.sendBroadcast(new Intent(QHybridSupport.QHYBRID_COMMAND_UNCONTROL));
if (localBroadcastManager != null) {
localBroadcastManager.sendBroadcast(new Intent(QHybridSupport.QHYBRID_COMMAND_SAVE_CALIBRATION));
localBroadcastManager.sendBroadcast(new Intent(QHybridSupport.QHYBRID_COMMAND_UNCONTROL));
}
}
}

View File

@ -119,7 +119,7 @@
android:icon="@drawable/ic_pending_actions"
android:summary="@string/qhybrid_pref_summary_actions">
<intent
android:targetPackage="nodomain.freeyourgadget.gadgetbridge"
android:targetPackage="@string/applicationId"
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.CommuteActionsActivity" />
</Preference>
@ -161,7 +161,7 @@
android:title="@string/qhybrid_title_file_management"
android:summary="@string/qhybrid_summary_file_management">
<intent
android:targetPackage="nodomain.freeyourgadget.gadgetbridge"
android:targetPackage="@string/applicationId"
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.FileManagementActivity" />
</Preference>

View File

@ -7,7 +7,7 @@
android:icon="@drawable/ic_watch"
android:summary="@string/qhybrid_watchface_configuration_old_firmware">
<intent
android:targetPackage="nodomain.freeyourgadget.gadgetbridge"
android:targetPackage="@string/applicationId"
android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.HRConfigActivity" />
</Preference>