Skip to content

Commit 14ee88a

Browse files
committed
Minor lint hints
1 parent 0ee31c5 commit 14ee88a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

LogcatCoreUI/src/main/java/info/hannes/logcat/base/LogBaseFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ abstract class LogBaseFragment : Fragment() {
135135

136136
searchView?.let {
137137
it.setIconifiedByDefault(true)
138-
it.setMaxWidth(Int.MAX_VALUE)
138+
it.maxWidth = Int.MAX_VALUE
139139
it.setOnQueryTextListener(queryTextListener)
140-
it.setQueryHint(searchHint)
140+
it.queryHint = searchHint
141141
it.setSearchableInfo(searchManager.getSearchableInfo(requireActivity().componentName))
142142
if (currentFilter != "") {
143143
searchItem?.expandActionView()

LogcatCoreUI/src/main/java/info/hannes/logcat/ui/LogfileFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class LogfileFragment : LogBaseFragment(), Observer<Event<String>> {
2626
sourceFileName = fileLoggingTree()?.getFileName()?.also { filename ->
2727
array = File(filename).useLines { it.toMutableList() }
2828
}
29-
} catch (e: Exception) {
29+
} catch (_: Exception) {
3030
}
3131
return array
3232
}

0 commit comments

Comments
 (0)