Small improvements

This commit is contained in:
Lucas Lima 2020-06-27 23:34:39 -03:00
parent e0f107ccb4
commit 50b9fa482b
No known key found for this signature in database
GPG key ID: C5EEF4C30BFBF8D7
8 changed files with 10 additions and 9 deletions

View file

@ -50,6 +50,6 @@ class ThirdPartiesFragment : Fragment() {
} }
companion object { companion object {
const val TAG = "ThirdPartiesFragment" val TAG = ThirdPartiesFragment::class.simpleName!!
} }
} }

View file

@ -42,6 +42,6 @@ class TranslatorsFragment : Fragment() {
} }
companion object { companion object {
const val TAG = "TranslatorsFragment" val TAG = TranslatorsFragment::class.simpleName!!
} }
} }

View file

@ -36,7 +36,7 @@ class ControlDialogFragment : AppCompatDialogFragment() {
return AlertDialog.Builder(requireContext(), R.style.MyDialog).apply { return AlertDialog.Builder(requireContext(), R.style.MyDialog).apply {
setTitle(R.string.control) setTitle(R.string.control)
setSingleChoiceItems(adapter, currentControl, null) setSingleChoiceItems(adapter, currentControl, null)
setPositiveButton(android.R.string.ok, null) // TODO OK setPositiveButton(R.string.ok, null) // TODO OK
}.create() }.create()
} }
@ -47,7 +47,7 @@ class ControlDialogFragment : AppCompatDialogFragment() {
super.onDismiss(dialog) super.onDismiss(dialog)
} }
class ControlListAdapter( private class ControlListAdapter(
private val controlViewModel: ControlViewModel private val controlViewModel: ControlViewModel
) : BaseAdapter() { ) : BaseAdapter() {
private var selected = controlViewModel.controlTypeSelected.value private var selected = controlViewModel.controlTypeSelected.value
@ -86,6 +86,6 @@ class ControlDialogFragment : AppCompatDialogFragment() {
} }
companion object { companion object {
const val TAG = "ControlDialogFragment" val TAG = ControlDialogFragment::class.simpleName!!
} }
} }

View file

@ -97,6 +97,6 @@ class CustomLevelDialogFragment : AppCompatDialogFragment() {
const val MIN_HEIGHT = 5 const val MIN_HEIGHT = 5
const val MIN_MINES = 3 const val MIN_MINES = 3
const val TAG = "CustomLevelDialogFragment" val TAG = CustomLevelDialogFragment::class.simpleName!!
} }
} }

View file

@ -147,6 +147,6 @@ class EndGameDialogFragment : AppCompatDialogFragment() {
private const val DIALOG_TOTAL_MINES = "dialog_total_mines" private const val DIALOG_TOTAL_MINES = "dialog_total_mines"
private const val DIALOG_SAVE_ID = "dialog_save_id" private const val DIALOG_SAVE_ID = "dialog_save_id"
const val TAG = "EndGameDialogFragment" val TAG = EndGameDialogFragment::class.simpleName!!
} }
} }

View file

@ -142,7 +142,7 @@ class AreaAdapter(
} }
companion object { companion object {
const val TAG = "AreaAdapter" val TAG = AreaAdapter::class.simpleName!!
fun createAreaPaintSettings(context: Context, useLargeArea: Boolean): AreaPaintSettings { fun createAreaPaintSettings(context: Context, useLargeArea: Boolean): AreaPaintSettings {
val resources = context.resources val resources = context.resources

View file

@ -14,6 +14,6 @@ class DebugAnalyticsManager : AnalyticsManager {
} }
companion object { companion object {
const val TAG = "DebugAnalyticsManager" val TAG = DebugAnalyticsManager::class.simpleName!!
} }
} }

View file

@ -99,6 +99,7 @@
<string name="total_time">Total Time</string> <string name="total_time">Total Time</string>
<string name="average_time">Average Time</string> <string name="average_time">Average Time</string>
<string name="performance">Performance</string> <string name="performance">Performance</string>
<string name="ok">OK</string>
<string name="use_question_mark">Use Question Flags</string> <string name="use_question_mark">Use Question Flags</string>
<string name="control">Control</string> <string name="control">Control</string>
<string name="arrow"></string> <string name="arrow"></string>