Small improvements
This commit is contained in:
parent
e0f107ccb4
commit
50b9fa482b
8 changed files with 10 additions and 9 deletions
|
@ -50,6 +50,6 @@ class ThirdPartiesFragment : Fragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val TAG = "ThirdPartiesFragment"
|
val TAG = ThirdPartiesFragment::class.simpleName!!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,6 @@ class TranslatorsFragment : Fragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val TAG = "TranslatorsFragment"
|
val TAG = TranslatorsFragment::class.simpleName!!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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!!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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!!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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!!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -14,6 +14,6 @@ class DebugAnalyticsManager : AnalyticsManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val TAG = "DebugAnalyticsManager"
|
val TAG = DebugAnalyticsManager::class.simpleName!!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue