mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +00:00
Don't use deprecated constants
This commit is contained in:
parent
a37fff6eb5
commit
d450008833
@ -71,7 +71,7 @@ public class SeekBarPreference extends DialogPreference
|
|||||||
valueText.setGravity(Gravity.CENTER_HORIZONTAL);
|
valueText.setGravity(Gravity.CENTER_HORIZONTAL);
|
||||||
valueText.setTextSize(32);
|
valueText.setTextSize(32);
|
||||||
params = new LinearLayout.LayoutParams(
|
params = new LinearLayout.LayoutParams(
|
||||||
LinearLayout.LayoutParams.FILL_PARENT,
|
LinearLayout.LayoutParams.MATCH_PARENT,
|
||||||
LinearLayout.LayoutParams.WRAP_CONTENT);
|
LinearLayout.LayoutParams.WRAP_CONTENT);
|
||||||
layout.addView(valueText, params);
|
layout.addView(valueText, params);
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ public class SeekBarPreference extends DialogPreference
|
|||||||
public void onStopTrackingTouch(SeekBar seekBar) {}
|
public void onStopTrackingTouch(SeekBar seekBar) {}
|
||||||
});
|
});
|
||||||
|
|
||||||
layout.addView(seekBar, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT));
|
layout.addView(seekBar, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
if (shouldPersist()) {
|
if (shouldPersist()) {
|
||||||
currentValue = getPersistedInt(defaultValue);
|
currentValue = getPersistedInt(defaultValue);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user