Commit d14b4bd4 authored by Geoffrey Métais's avatar Geoffrey Métais

TV: Update items to show parsing results

parent a3f36a50
......@@ -45,6 +45,7 @@ import androidx.leanback.widget.Row;
import androidx.leanback.widget.RowPresenter;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import kotlin.Pair;
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
public class DirectoryBrowserFragment extends MediaSortedFragment<BrowserModel> {
......@@ -74,6 +75,12 @@ public class DirectoryBrowserFragment extends MediaSortedFragment<BrowserModel>
}
}
});
viewModel.getDescriptionUpdate().observe(this, new Observer<Pair<Integer, String>>() {
@Override
public void onChanged(Pair<Integer, String> pair) {
if (pair != null) getAdapter().notifyItemRangeChanged(0, getAdapter().size());
}
});
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment