v2.5.4 - Added radar sweep animation, fixed update issue

This commit is contained in:
Arty Bishop committed 2021-09-17 10:10:20 +01:00
1 parent 4bf2e6c768
commit e6d0671816
9 files changed
+27 -8

No files matched your search

+5 -5
View File
@@ -14,8 +14,8 @@ android {
minSdkVersion 23
resConfigs "en,ru"
targetSdkVersion 31
versionCode 253
versionName "2.5.3"
versionCode 254
versionName "2.5.4"
javaCompileOptions {
annotationProcessorOptions {
@@ -38,11 +38,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
buildFeatures {
viewBinding true
@@ -69,6 +69,7 @@ class PreferencesProvider @Inject constructor(
const val keySources = "prefTleSourcesKey"
const val keyModes = "satModes"
const val keyCompass = "compass"
const val keyRadarSweep = "radarSweep"
const val keyTextLabels = "shouldUseTextLabels"
const val keyTimeUTC = "timeUTC"
const val keyHoursAhead = "hoursAhead"
@@ -156,6 +157,10 @@ class PreferencesProvider @Inject constructor(
return preferences.getBoolean(keyCompass, true)
}
override fun shouldShowSweep(): Boolean {
return preferences.getBoolean(keyRadarSweep, true)
}
override fun isSetupDone(): Boolean {
return preferences.getBoolean(keyInitialSetup, false)
}
@@ -78,6 +78,7 @@ class PassInfoFragment : Fragment(R.layout.fragment_polar) {
setShowAim(preferences.shouldUseCompass())
setPass(pass)
setStationPos(stationPos)
setScanning(preferences.shouldShowSweep())
}
binding.frame.addView(passInfoView)
observeTransmitters(pass, satTransAdapter, binding)
@@ -99,6 +99,10 @@ class PassInfoView(context: Context) : View(context) {
private var pitch: Float = 0f
private var roll: Float = 0f
fun setScanning(isScanning: Boolean) {
shouldShowSweep = isScanning
}
fun setPass(satPass: SatPass) {
this.satPass = satPass
}
+1
View File
@@ -59,6 +59,7 @@
<string name="pref_map_labels">Использовать текстовые метки</string>
<string name="pref_other_title">Другие настройки</string>
<string name="pref_compass_title">Использовать компас</string>
<string name="pref_radar_sweep">Показывать анимацию радара</string>
<string name="pref_time_utc_title">Показывать время пролета по UTC</string>
<string name="tracking_title">Настройки слежения</string>
+1
View File
@@ -75,6 +75,7 @@
<string name="pref_map_labels">Use text labels instead of icons</string>
<string name="pref_other_title">Other</string>
<string name="pref_time_utc_title">Show pass time in UTC</string>
<string name="pref_radar_sweep">Enable radar sweep animation</string>
<string name="pref_compass_title">Use sensors to rotate radar view</string>
<string name="tracking_title">Tracking preferences</string>
+5
View File
@@ -74,6 +74,11 @@
android:key="timeUTC"
android:title="@string/pref_time_utc_title"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="radarSweep"
android:title="@string/pref_radar_sweep"
app:iconSpaceReserved="false" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="compass"