mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-04 03:37:21 +00:00
Fixed Redmi dark theme colors bug, minor layouts cleanup
This commit is contained in:
1 parent
9b76d42707
commit
96ae6338a7
12 files changed
+83
-78
No files matched your search
@@ -19,13 +19,11 @@ package com.rtbishop.look4sat.presentation.radarScreen
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import android.widget.Toast
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.fragment.app.viewModels
|
||||
import androidx.navigation.fragment.findNavController
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.SimpleItemAnimator
|
||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||
import com.rtbishop.look4sat.R
|
||||
import com.rtbishop.look4sat.databinding.FragmentRadarBinding
|
||||
import com.rtbishop.look4sat.framework.PreferencesSource
|
||||
@@ -108,29 +106,29 @@ class RadarFragment : Fragment(R.layout.fragment_radar) {
|
||||
})
|
||||
}
|
||||
|
||||
binding.addNotificationButtton.setOnClickListener {
|
||||
this.context?.let { context ->
|
||||
|
||||
val choicesList = arrayOf(
|
||||
getString(R.string.notification_on_start_pass),
|
||||
getString(R.string.notification_5_min_before),
|
||||
getString(R.string.notification_10_min_before),
|
||||
getString(R.string.notification_15_min_before),
|
||||
)
|
||||
|
||||
MaterialAlertDialogBuilder(context)
|
||||
.setTitle(getString(R.string.notification_title))
|
||||
.setSingleChoiceItems(choicesList, -1) { dialog, which ->
|
||||
// TODO in this place should set a notification by NotificationBuilder
|
||||
Toast.makeText(context, "Reminder was saved", Toast.LENGTH_SHORT).show()
|
||||
dialog.dismiss()
|
||||
}
|
||||
.setNegativeButton(getString(R.string.btn_cancel)) { _, _ ->
|
||||
// noop
|
||||
}
|
||||
.show()
|
||||
}
|
||||
}
|
||||
// binding.addNotificationButton.setOnClickListener {
|
||||
// this.context?.let { context ->
|
||||
//
|
||||
// val choicesList = arrayOf(
|
||||
// getString(R.string.notification_on_start_pass),
|
||||
// getString(R.string.notification_5_min_before),
|
||||
// getString(R.string.notification_10_min_before),
|
||||
// getString(R.string.notification_15_min_before),
|
||||
// )
|
||||
//
|
||||
// MaterialAlertDialogBuilder(context)
|
||||
// .setTitle(getString(R.string.notification_title))
|
||||
// .setSingleChoiceItems(choicesList, -1) { dialog, which ->
|
||||
// // TODO in this place should set a notification by NotificationBuilder
|
||||
// Toast.makeText(context, "Reminder was saved", Toast.LENGTH_SHORT).show()
|
||||
// dialog.dismiss()
|
||||
// }
|
||||
// .setNegativeButton(getString(R.string.btn_cancel)) { _, _ ->
|
||||
// // noop
|
||||
// }
|
||||
// .show()
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
private fun setPassText(satPass: SatPass, satPos: SatPos, binding: FragmentRadarBinding) {
|
||||
|
||||
Reference in new issue
Block a user