From ed69a1e996544ff4cbd3fd2ada12bc3027c34024 Mon Sep 17 00:00:00 2001 From: Arty Bishop Date: Sun, 20 Sep 2020 15:09:59 +0100 Subject: [PATCH] Minor updates to interface and strings --- .../rtbishop/look4sat/ui/SharedViewModel.kt | 2 +- app/src/main/res/layout/item_transmitter.xml | 56 +++++++------------ app/src/main/res/values-ru/strings.xml | 22 ++++---- app/src/main/res/values/strings.xml | 20 +++---- 4 files changed, 42 insertions(+), 58 deletions(-) diff --git a/app/src/main/java/com/rtbishop/look4sat/ui/SharedViewModel.kt b/app/src/main/java/com/rtbishop/look4sat/ui/SharedViewModel.kt index ecfa9ab6..3aae806e 100644 --- a/app/src/main/java/com/rtbishop/look4sat/ui/SharedViewModel.kt +++ b/app/src/main/java/com/rtbishop/look4sat/ui/SharedViewModel.kt @@ -95,8 +95,8 @@ class SharedViewModel @Inject constructor( try { val selected = repository.getSelectedEntries().map { it.catNum } repository.updateSources(list) - repository.updateTransmitters() repository.updateEntriesFromUrl(list) + repository.updateTransmitters() repository.updateEntriesSelection(selected) _updateStatus.postValue(Result.Success(0)) } catch (e: Exception) { diff --git a/app/src/main/res/layout/item_transmitter.xml b/app/src/main/res/layout/item_transmitter.xml index 8cd9b5a6..9c1ef25e 100644 --- a/app/src/main/res/layout/item_transmitter.xml +++ b/app/src/main/res/layout/item_transmitter.xml @@ -60,17 +60,20 @@ + android:layout_marginStart="8dp" + android:layout_marginTop="2dp" + android:layout_marginEnd="8dp" + android:background="#333" + android:padding="15dp" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/trans_uplink" /> - - - - Показывать время пролёта по UTC Модуляция: нет - Восход.: нет - Нисход.: нет + Восход: нет + Нисход: нет + Тек. восход: нет + Тек. нисход: нет Не найдены трансиверы для этого спутника Отсутствуют необходимые разрешения @@ -91,14 +93,14 @@ Модуляция: %s Инверсия: %s - Восход.: %.4f MHz - Восход.: %.4f - %.4f MHz - Нисход.: %.4f MHz - Нисход.: %.4f - %.4f MHz - Восход.: %.4f MHz - Восход.: %.4f - %.4f MHz - Нисход.: %.4f MHz - Нисход.: %.4f - %.4f MHz + Восход: %.4fMHz + Восход: %.4f - %.4fMHz + Нисход: %.4f MHz + Нисход: %.4f - %.4fMHz + Тек. восход: %.4fMHz + Тек. восход: %.4f - %.4fMHz + Тек. нисход: %.4fMHz + Тек. нисход: %.4f - %.4fMHz Проведите по экрану вниз, чтобы обновить список пролетов для выбранных спутников diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 998c7aa6..cc3c3598 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -79,8 +79,8 @@ Mode: null Uplink: null Downlink: null - Current uplink: null - Current downlink: null + Curr. uplink: null + Curr. downlink: null No transceivers found for this satellite Missing permissions @@ -110,14 +110,14 @@ %s Mode: %s Inverted: %s - Uplink: %.4f MHz - Uplink: %.4f - %.4f MHz - Downlink: %.4f MHz - Downlink: %.4f - %.4f MHz - Current uplink: %.4f MHz - Current uplink: %.4f - %.4f MHz - Current downlink: %.4f MHz - Current downlink: %.4f - %.4f MHz + Uplink: %.4fMHz + Uplink: %.4f - %.4fMHz + Downlink: %.4fMHz + Downlink: %.4f - %.4fMHz + Curr. uplink: %.4fMHz + Curr. uplink: %.4f - %.4fMHz + Curr. downlink: %.4fMHz + Curr. downlink: %.4f - %.4fMHz Swipe the screen to refresh the list of passes for selected satellites