Java Code Examples for androidx.leanback.widget.ArrayObjectAdapter#notifyArrayItemRangeChanged()
The following examples show how to use
androidx.leanback.widget.ArrayObjectAdapter#notifyArrayItemRangeChanged() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VideoPlayerGlue.java From tv-samples with Apache License 2.0 | 5 votes |
private void notifyActionChanged( PlaybackControlsRow.MultiAction action, ArrayObjectAdapter adapter) { if (adapter != null) { int index = adapter.indexOf(action); if (index >= 0) { adapter.notifyArrayItemRangeChanged(index, 1); } } }
Example 2
Source File: CustomPlaybackTransportControlGlue.java From jellyfin-androidtv with GNU General Public License v2.0 | 5 votes |
private void notifyActionChanged(Action action) { ArrayObjectAdapter adapter = primaryActionsAdapter; if (adapter.indexOf(action) >= 0) { adapter.notifyArrayItemRangeChanged(adapter.indexOf(action), 1); return; } adapter = secondaryActionsAdapter; if (adapter.indexOf(action) >= 0) { adapter.notifyArrayItemRangeChanged(adapter.indexOf(action), 1); } }
Example 3
Source File: VideoPlayerGlue.java From androidtv-Leanback with Apache License 2.0 | 5 votes |
private void notifyActionChanged( PlaybackControlsRow.MultiAction action, ArrayObjectAdapter adapter) { if (adapter != null) { int index = adapter.indexOf(action); if (index >= 0) { adapter.notifyArrayItemRangeChanged(index, 1); } } }
Example 4
Source File: MediaPlayerGlue.java From tv-samples with Apache License 2.0 | 4 votes |
static void notifyItemChanged(ArrayObjectAdapter adapter, Object object) { int index = adapter.indexOf(object); if (index >= 0) { adapter.notifyArrayItemRangeChanged(index, 1); } }