Commit 756bbc96 authored by sridhar's avatar sridhar
Browse files

Defect fix

Defect fix
parent 5dce3e21
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -870,6 +870,7 @@ class ReactExoplayerView extends FrameLayout implements

            /*0 is auto mode. Add all tracks of group 0*/
            if (0 == value.asInt()) {
                if (groups.length > 0) {
                    TrackGroup group = groups.get(0);

                    tracks = new int[group.length];
@@ -879,6 +880,7 @@ class ReactExoplayerView extends FrameLayout implements
                    for (int j = 0; j < group.length; j++) {
                        tracks[j] = j;
                    }
                }
            } else {
                /*Search for the exact video Height*/
                for (int i = 0; i < groups.length; ++i) {