Skip to content

Commit

Permalink
Fix issue #112 by updating the DB to change the memory format to incl…
Browse files Browse the repository at this point in the history
…ude the expected extra 0 of frequency precision. Also make text in APRS messages selectable.
  • Loading branch information
VanceVagell committed Nov 23, 2024
1 parent 7f3f87f commit 437ba79
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
kv4p HT (see http://kv4p.com)
Copyright (C) 2024 Vance Vagell
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package com.vagell.kv4pht.data.migrations;

import androidx.room.migration.Migration;
Expand Down Expand Up @@ -31,5 +49,8 @@ public void migrate(SupportSQLiteDatabase database) {
"`wind_force` INTEGER NOT NULL, " +
"`wind_dir` TEXT" +
")");

// update frequencies in channel_memories from 'xxx.xxx' to 'xxx.xxxx' (ESP32 firmware v2+ requires this new format)
database.execSQL("UPDATE channel_memories SET frequency = frequency || '0' WHERE length(frequency) = 7");
}
}
3 changes: 2 additions & 1 deletion android-src/KV4PHT/app/src/main/res/layout/aprs_message.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
android:textColor="@color/primary"
android:textSize="20sp"
android:paddingLeft="8dp"
android:paddingRight="8dp"/>
android:paddingRight="8dp"
android:textIsSelectable="true"/>

</LinearLayout>
</LinearLayout>

0 comments on commit 437ba79

Please sign in to comment.