diff --git a/Source/Android/res/layout/slider_layout.xml b/Source/Android/res/layout/slider_layout.xml index 4341d9da16..a667ff6489 100644 --- a/Source/Android/res/layout/slider_layout.xml +++ b/Source/Android/res/layout/slider_layout.xml @@ -10,14 +10,14 @@ \ No newline at end of file diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/utils/SliderPreference.java b/Source/Android/src/org/dolphinemu/dolphinemu/utils/SliderPreference.java index a4b67a89a8..eab6f74ff0 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/utils/SliderPreference.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/utils/SliderPreference.java @@ -40,8 +40,8 @@ public class SliderPreference extends DialogPreference implements SeekBar.OnSeek LayoutInflater inflater = LayoutInflater.from(getContext()); LinearLayout layout = (LinearLayout)inflater.inflate(R.layout.slider_layout, null, false); - m_seekbar = (SeekBar)layout.getChildAt(0); - m_textview = (TextView)layout.getChildAt(1); + m_seekbar = (SeekBar)layout.findViewById(R.id.sliderSeekBar); + m_textview = (TextView)layout.findViewById(R.id.sliderTextView); if (shouldPersist()) m_value = Integer.valueOf(getPersistedString(Integer.toString(m_value)));