Satellite tracker and pass predictor for Android, inspired by Gpredict
Kotlin amsatcelestrakgpsham-radiohamlibhamradiokotlinnasaradiosatellitesatellite-datasatellite-positionsatellite-predictionsatellitessatnogssdrspacespacexstarlink
Moved the "keep screen on" attr from activity to layouts
Arty Bishop41cf2f3a5db5
diff --git a/app/src/main/java/com/rtbishop/look4sat/ui/MainActivity.kt b/app/src/main/java/com/rtbishop/look4sat/ui/MainActivity.ktindex e0f9db75..981a5a70 100644--- a/app/src/main/java/com/rtbishop/look4sat/ui/MainActivity.kt+++ b/app/src/main/java/com/rtbishop/look4sat/ui/MainActivity.kt@@ -1,7 +1,6 @@package com.rtbishop.look4sat.uiimport android.os.Bundle-import android.view.WindowManagerimport androidx.appcompat.app.AppCompatActivityimport androidx.navigation.fragment.NavHostFragmentimport androidx.navigation.ui.setupWithNavController@@ -16,6 +15,5 @@ class MainActivity : AppCompatActivity() {setContentView(binding.root)val navHost = supportFragmentManager.findFragmentById(R.id.nav_frag) as NavHostFragmentbinding.navBottom.setupWithNavController(navHost.navController)- window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)}}\ No newline at end of filediff --git a/app/src/main/res/layout/fragment_map.xml b/app/src/main/res/layout/fragment_map.xmlindex 5f85bb10..d39a9b7a 100644--- a/app/src/main/res/layout/fragment_map.xml+++ b/app/src/main/res/layout/fragment_map.xml@@ -1,10 +1,27 @@-<?xml version="1.0" encoding="utf-8"?>+<?xml version="1.0" encoding="utf-8"?><!--+ ~ Look4Sat. Amateur radio and weather satellite tracker and passes predictor for Android.+ ~ Copyright (C) 2019, 2020 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 2 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, write to the Free Software Foundation, Inc.,+ ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.+ -->+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"- xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"- tools:context=".ui.fragments.MapFragment">+ android:keepScreenOn="true"><org.osmdroid.views.MapViewandroid:id="@+id/map_view"diff --git a/app/src/main/res/layout/fragment_passes.xml b/app/src/main/res/layout/fragment_passes.xmlindex d8bc0cf5..f3452a53 100644--- a/app/src/main/res/layout/fragment_passes.xml+++ b/app/src/main/res/layout/fragment_passes.xml@@ -20,7 +20,8 @@<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"android:layout_width="match_parent"- android:layout_height="match_parent">+ android:layout_height="match_parent"+ android:keepScreenOn="true"><androidx.constraintlayout.widget.ConstraintLayoutandroid:layout_width="match_parent"diff --git a/app/src/main/res/layout/fragment_polar.xml b/app/src/main/res/layout/fragment_polar.xmlindex f3b77b3d..2ecd4a60 100644--- a/app/src/main/res/layout/fragment_polar.xml+++ b/app/src/main/res/layout/fragment_polar.xml@@ -19,10 +19,9 @@<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"- xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"- tools:context=".ui.fragments.PolarFragment">+ android:keepScreenOn="true"><FrameLayoutandroid:id="@+id/frame"