-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3.0.0 - Minor fixes, updates to readme, copyright and version
- Loading branch information
Showing
77 changed files
with
262 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/LocationHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/OrientationHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/SettingsHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/data/EntriesDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
17 changes: 17 additions & 0 deletions
17
app/src/main/java/com/rtbishop/look4sat/framework/data/Provider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 <https://www.gnu.org/licenses/>. | ||
*/ | ||
package com.rtbishop.look4sat.framework.data | ||
|
||
import android.content.ContentResolver | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/data/RadiosDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/data/Storage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/data/StorageDb.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/model/DataSource.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/model/SatEntry.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/model/SatItem.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/framework/model/SatRadio.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/injection/CoreModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/presentation/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/presentation/MainApplication.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/presentation/entriesScreen/EntriesAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/presentation/entriesScreen/EntriesFragment.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/presentation/entriesScreen/EntriesViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
17 changes: 17 additions & 0 deletions
17
app/src/main/java/com/rtbishop/look4sat/presentation/entriesScreen/ModesAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 <https://www.gnu.org/licenses/>. | ||
*/ | ||
package com.rtbishop.look4sat.presentation.entriesScreen | ||
|
||
import android.view.LayoutInflater | ||
|
17 changes: 17 additions & 0 deletions
17
app/src/main/java/com/rtbishop/look4sat/presentation/entriesScreen/ModesDialog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 <https://www.gnu.org/licenses/>. | ||
*/ | ||
package com.rtbishop.look4sat.presentation.entriesScreen | ||
|
||
import android.os.Bundle | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/presentation/mapScreen/MapData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
@@ -63,7 +63,7 @@ class MapFragment : Fragment(R.layout.fragment_map) { | |
color = Color.parseColor("#FFE082") | ||
} | ||
private val textPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply { | ||
textSize = 28f | ||
textSize = 32f | ||
strokeWidth = 2f | ||
style = Paint.Style.FILL | ||
color = Color.parseColor("#CCFFFFFF") | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/presentation/mapScreen/MapViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
17 changes: 17 additions & 0 deletions
17
app/src/main/java/com/rtbishop/look4sat/presentation/passesScreen/FilterDialog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 <https://www.gnu.org/licenses/>. | ||
*/ | ||
package com.rtbishop.look4sat.presentation.passesScreen | ||
|
||
import android.os.Bundle | ||
|
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/presentation/passesScreen/PassesAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
@@ -17,10 +17,8 @@ | |
*/ | ||
package com.rtbishop.look4sat.presentation.passesScreen | ||
|
||
import android.animation.ValueAnimator | ||
import android.os.Bundle | ||
import android.view.View | ||
import android.view.animation.LinearInterpolator | ||
import android.widget.Toast | ||
import androidx.fragment.app.Fragment | ||
import androidx.fragment.app.viewModels | ||
|
@@ -43,7 +41,7 @@ class PassesFragment : Fragment(R.layout.fragment_passes), PassesAdapter.PassesC | |
private val viewModel: PassesViewModel by viewModels() | ||
private val passesAdapter = PassesAdapter(this) | ||
private var binding: FragmentPassesBinding? = null | ||
private var refreshAnimator: ValueAnimator? = null | ||
// private var refreshAnimator: ValueAnimator? = null | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
|
@@ -75,7 +73,7 @@ class PassesFragment : Fragment(R.layout.fragment_passes), PassesAdapter.PassesC | |
val dir = PassesFragmentDirections.globalToSettings() | ||
findNavController().navigate(dir) | ||
} | ||
setupAnimator() | ||
// setupAnimator() | ||
setupObservers() | ||
} | ||
} | ||
|
@@ -93,14 +91,14 @@ class PassesFragment : Fragment(R.layout.fragment_passes), PassesAdapter.PassesC | |
super.onDestroyView() | ||
} | ||
|
||
private fun setupAnimator() { | ||
refreshAnimator = ValueAnimator.ofFloat(0f, -360f).apply { | ||
duration = 875 | ||
interpolator = LinearInterpolator() | ||
repeatCount = ValueAnimator.INFINITE | ||
addUpdateListener { binding?.passesBtnRefresh?.rotation = animatedValue as Float } | ||
} | ||
} | ||
// private fun setupAnimator() { | ||
// refreshAnimator = ValueAnimator.ofFloat(0f, -360f).apply { | ||
// duration = 875 | ||
// interpolator = LinearInterpolator() | ||
// repeatCount = ValueAnimator.INFINITE | ||
// addUpdateListener { binding?.passesBtnRefresh?.rotation = animatedValue as Float } | ||
// } | ||
// } | ||
|
||
private fun setupObservers() { | ||
viewModel.entriesTotal.observe(viewLifecycleOwner) { number -> | ||
|
@@ -146,7 +144,7 @@ class PassesFragment : Fragment(R.layout.fragment_passes), PassesAdapter.PassesC | |
} | ||
} | ||
is DataState.Loading -> { | ||
refreshAnimator?.start() | ||
// refreshAnimator?.start() | ||
passesBtnRefresh.isEnabled = false | ||
passesTimer.text = 0L.toTimerString() | ||
} | ||
|
@@ -172,7 +170,7 @@ class PassesFragment : Fragment(R.layout.fragment_passes), PassesAdapter.PassesC | |
passesTimer.text = 0L.toTimerString() | ||
} | ||
passesBtnRefresh.isEnabled = true | ||
refreshAnimator?.cancel() | ||
// refreshAnimator?.cancel() | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/rtbishop/look4sat/presentation/passesScreen/PassesViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Look4Sat. Amateur radio satellite tracker and pass predictor. | ||
* Copyright (C) 2019-2021 Arty Bishop ([email protected]) | ||
* Copyright (C) 2019-2022 Arty Bishop ([email protected]) | ||
* | ||
* 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 | ||
|
Oops, something went wrong.