Suppressed unused parameter and deprecation warnings.
This commit is contained in:
parent
1dcd8711dc
commit
749ae6bf2b
3 changed files with 7 additions and 0 deletions
|
@ -83,6 +83,7 @@ class MainActivity : AppCompatActivity(), AnkoLogger {
|
|||
if (Build.VERSION.SDK_INT >= 24) {
|
||||
return Html.fromHtml(s, Html.FROM_HTML_MODE_LEGACY)
|
||||
} else {
|
||||
@Suppress("DEPRECATION")
|
||||
return Html.fromHtml(s)
|
||||
}
|
||||
}
|
||||
|
@ -224,6 +225,7 @@ class MainActivity : AppCompatActivity(), AnkoLogger {
|
|||
}
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
setOnEditorActionListener { v, id, event ->
|
||||
if (id == EditorInfo.IME_ACTION_DONE) {
|
||||
clearFocus()
|
||||
|
@ -257,6 +259,7 @@ class MainActivity : AppCompatActivity(), AnkoLogger {
|
|||
adapter = ArrayAdapter<String>(this@MainActivity, android.R.layout.simple_list_item_1, titles)
|
||||
isTextFilterEnabled = true
|
||||
isScrollbarFadingEnabled = false
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
onItemClickListener = AdapterView.OnItemClickListener { parent, v, position, id ->
|
||||
if (validateFields(fields)) {
|
||||
saveConfig()
|
||||
|
@ -306,11 +309,13 @@ class MainActivity : AppCompatActivity(), AnkoLogger {
|
|||
dialogInterface.dismiss()
|
||||
})
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
alert.setNegativeButton(android.R.string.cancel,
|
||||
{ dialogInterface, i ->
|
||||
dialogInterface.dismiss()
|
||||
})
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
alert.setNeutralButton(R.string.dialog_import,
|
||||
{ dialogInterface, i ->
|
||||
dialogInterface.dismiss()
|
||||
|
|
|
@ -143,6 +143,7 @@ class ProgrammingActivity : AppCompatActivity(), AnkoLogger {
|
|||
|
||||
if (!it.hasNext()) {
|
||||
imeOptions = EditorInfo.IME_ACTION_DONE
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
setOnEditorActionListener { v, id, event ->
|
||||
if (id == EditorInfo.IME_ACTION_DONE) {
|
||||
clearFocus()
|
||||
|
|
|
@ -189,6 +189,7 @@ class Dtmf {
|
|||
fun mock(option: Option, blank: String): String {
|
||||
val replace = arrayListOf(Pair(DTMF_MASTER, blank))
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
option.fields.forEachIndexed { i, field ->
|
||||
replace.add(Pair(DTMF_FIELD.format(i + 1), blank))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue