Skip to content

Instantly share code, notes, and snippets.

View abhiint16's full-sized avatar
🎯
Focusing

Abhishek Kumar abhiint16

🎯
Focusing
View GitHub Profile
track_selection_text.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
MappingTrackSelector.MappedTrackInfo mappedTrackInfo = trackSelector.getCurrentMappedTrackInfo();
if (mappedTrackInfo != null) {
//CharSequence title = ((Button) view).getText();
//int rendererIndex = (int) v.getTag();
int rendererType = mappedTrackInfo.getRendererType(0);
boolean allowAdaptiveSelections =
rendererType == C.TRACK_TYPE_VIDEO
package //your own package name here;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.support.annotation.AttrRes;
@abhiint16
abhiint16 / introrx.md
Created September 3, 2017 17:23 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing