mirror of
https://github.com/markusfisch/BinaryEye.git
synced 2024-09-19 19:42:18 +02:00
Replace View casts for generic denotation
This commit is contained in:
parent
3fee49301e
commit
97bee27827
@ -122,7 +122,7 @@ class BarcodeFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
(view.findViewById(R.id.inset_layout) as View).setPaddingFromWindowInsets()
|
view.findViewById<View>(R.id.inset_layout).setPaddingFromWindowInsets()
|
||||||
imageView.doOnApplyWindowInsets { v, insets ->
|
imageView.doOnApplyWindowInsets { v, insets ->
|
||||||
(v as ConfinedScalingImageView).insets.set(insets)
|
(v as ConfinedScalingImageView).insets.set(insets)
|
||||||
}
|
}
|
||||||
|
@ -148,8 +148,8 @@ class DecodeFragment : Fragment() {
|
|||||||
|
|
||||||
updateViewsAndFab(originalContent, originalBytes)
|
updateViewsAndFab(originalContent, originalBytes)
|
||||||
|
|
||||||
(view.findViewById(R.id.inset_layout) as View).setPaddingFromWindowInsets()
|
view.findViewById<View>(R.id.inset_layout).setPaddingFromWindowInsets()
|
||||||
(view.findViewById(R.id.scroll_view) as View).setPaddingFromWindowInsets()
|
view.findViewById<View>(R.id.scroll_view).setPaddingFromWindowInsets()
|
||||||
|
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
@ -209,8 +209,8 @@ class EncodeFragment : Fragment() {
|
|||||||
it.context.encode()
|
it.context.encode()
|
||||||
}
|
}
|
||||||
|
|
||||||
(view.findViewById(R.id.inset_layout) as View).setPaddingFromWindowInsets()
|
view.findViewById<View>(R.id.inset_layout).setPaddingFromWindowInsets()
|
||||||
(view.findViewById(R.id.scroll_view) as View).setPaddingFromWindowInsets()
|
view.findViewById<View>(R.id.scroll_view).setPaddingFromWindowInsets()
|
||||||
|
|
||||||
return view
|
return view
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ class HistoryFragment : Fragment() {
|
|||||||
|
|
||||||
useHistorySwitch = view.findViewById(
|
useHistorySwitch = view.findViewById(
|
||||||
R.id.use_history
|
R.id.use_history
|
||||||
) as SwitchCompat
|
)
|
||||||
initHistorySwitch(useHistorySwitch)
|
initHistorySwitch(useHistorySwitch)
|
||||||
|
|
||||||
listView = view.findViewById(R.id.scans)
|
listView = view.findViewById(R.id.scans)
|
||||||
@ -192,7 +192,7 @@ class HistoryFragment : Fragment() {
|
|||||||
|
|
||||||
progressView = view.findViewById(R.id.progress_view)
|
progressView = view.findViewById(R.id.progress_view)
|
||||||
|
|
||||||
(view.findViewById(R.id.inset_layout) as View).setPaddingFromWindowInsets()
|
view.findViewById<View>(R.id.inset_layout).setPaddingFromWindowInsets()
|
||||||
listView.setPaddingFromWindowInsets()
|
listView.setPaddingFromWindowInsets()
|
||||||
|
|
||||||
update()
|
update()
|
||||||
|
@ -51,7 +51,7 @@ class NetworkSuggestionsFragment : Fragment() {
|
|||||||
listView.emptyView = view.findViewById(R.id.no_suggestions)
|
listView.emptyView = view.findViewById(R.id.no_suggestions)
|
||||||
listView.adapter = suggestionArrayAdapter
|
listView.adapter = suggestionArrayAdapter
|
||||||
listView.setOnScrollListener(systemBarListViewScrollListener)
|
listView.setOnScrollListener(systemBarListViewScrollListener)
|
||||||
(view.findViewById(R.id.inset_layout) as View).setPaddingFromWindowInsets()
|
view.findViewById<View>(R.id.inset_layout).setPaddingFromWindowInsets()
|
||||||
listView.setPaddingFromWindowInsets()
|
listView.setPaddingFromWindowInsets()
|
||||||
|
|
||||||
view.findViewById<View>(R.id.remove).setOnClickListener {
|
view.findViewById<View>(R.id.remove).setOnClickListener {
|
||||||
|
Loading…
Reference in New Issue
Block a user