Commit a51e45d5 authored by Javier Romero's avatar Javier Romero

Minor fixes based on lint fixes

parent f03b1253
Pipeline #29697076 passed with stages
in 13 minutes and 45 seconds
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
### Fixed ### Fixed
- Landscape lock screen: https://gitlab.com/devlife-apps/connect2sql/issues/11 - Landscape lock screen: https://gitlab.com/devlife-apps/connect2sql/issues/11
- Crash: http://crashes.to/s/a5ca59edd6f - Crash: http://crashes.to/s/a5ca59edd6f
- Spanish QuickKeys
## [4.0.9] - 2018-09-04 ## [4.0.9] - 2018-09-04
......
...@@ -15,7 +15,7 @@ class SavedQueriesAdapter(private val context: Context) : BaseExpandableListAdap ...@@ -15,7 +15,7 @@ class SavedQueriesAdapter(private val context: Context) : BaseExpandableListAdap
var titleOnly = false var titleOnly = false
private val inflator = LayoutInflater.from(context) private val inflator = LayoutInflater.from(context)
private val builtInText = context.getString(R.string.saved_queries_built_in) private val builtInText = context.getString(R.string.saved_queries_built_in)
private val savedText = context.getString(R.string.saved_queries_built_in) private val savedText = context.getString(R.string.saved_queries_saved)
private val queries: List<MutableList<BaseNamedQuery>> = listOf(arrayListOf(), arrayListOf()) private val queries: List<MutableList<BaseNamedQuery>> = listOf(arrayListOf(), arrayListOf())
fun addToBuiltInQueries(query: BuiltInQuery) { fun addToBuiltInQueries(query: BuiltInQuery) {
......
...@@ -45,7 +45,7 @@ class TableListAdapter(private val context: Context, private val tableList: Muta ...@@ -45,7 +45,7 @@ class TableListAdapter(private val context: Context, private val tableList: Muta
} }
override fun getView(position: Int, convertView: View?, parent: ViewGroup): View { override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
val view = convertView ?: mInflater.inflate(R.layout.item_table, parent).apply { val view = convertView ?: mInflater.inflate(R.layout.item_table, null).apply {
this.tag = ViewHolder( this.tag = ViewHolder(
this.findViewById(R.id.imageView1), this.findViewById(R.id.imageView1),
this.findViewById(R.id.text1), this.findViewById(R.id.text1),
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<string name="pl_wrong_pattern">Patrón incorrecto, inténtelo de nuevo.</string> <string name="pl_wrong_pattern">Patrón incorrecto, inténtelo de nuevo.</string>
<string name="qk_clear">Borrar</string> <string name="qk_clear">Borrar</string>
<string name="qk_section_column"/> <string name="qk_section_column">Columnas</string>
<string name="qk_section_databases">Bases de datos</string> <string name="qk_section_databases">Bases de datos</string>
<string name="qk_section_operators">Operadores</string> <string name="qk_section_operators">Operadores</string>
<string name="qk_section_snippets">Fragmentos</string> <string name="qk_section_snippets">Fragmentos</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment