| 20 | } |
| 21 | |
| 22 | std::optional<size_t> ListViewCore::rowIndexForView(const std::shared_ptr<View> &view) const |
| 23 | { |
| 24 | if (auto viewCore = view->core<ViewCore>()) { |
| 25 | auto non_const = const_cast<bdn::android::wrapper::NativeListView *>(&_jNativeListView); |
| 26 | int pos = non_const->getRowIndexForView(viewCore->getJView()); |
| 27 | |
| 28 | if (pos != -1) { |
| 29 | return pos; |
| 30 | } |
| 31 | } |
| 32 | return std::nullopt; |
| 33 | } |
| 34 | |
| 35 | void ListViewCore::refreshDone() { _jNativeListView.setRefreshing(false); } |
| 36 |
nothing calls this directly
no test coverage detected