diff --git a/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java b/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java index e91feaa291..058133895e 100644 --- a/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java +++ b/demos/main/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java @@ -550,7 +550,7 @@ public class PlayerActivity extends Activity button.setText(label); button.setTag(i); button.setOnClickListener(this); - debugRootView.addView(button, debugRootView.getChildCount() - 1); + debugRootView.addView(button); } } }