mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-23 17:40:54 +00:00
fix color dialog title
This commit is contained in:
parent
c53224dd2b
commit
bc159f5e3c
2 changed files with 3 additions and 3 deletions
|
@ -185,7 +185,7 @@ class AppearanceSettingsFragment : SubScreenFragment(), Preference.OnPreferenceC
|
||||||
3 -> Settings.PREF_THEME_USER_COLOR_ACCENT
|
3 -> Settings.PREF_THEME_USER_COLOR_ACCENT
|
||||||
else -> Settings.PREF_THEME_USER_COLOR_KEYS
|
else -> Settings.PREF_THEME_USER_COLOR_KEYS
|
||||||
}
|
}
|
||||||
val d = ColorPickerDialog(activity, sharedPreferences, pref)
|
val d = ColorPickerDialog(activity, items[i], sharedPreferences, pref)
|
||||||
d.show()
|
d.show()
|
||||||
}
|
}
|
||||||
.show()
|
.show()
|
||||||
|
|
|
@ -30,9 +30,9 @@ import android.widget.TextView;
|
||||||
import org.dslul.openboard.inputmethod.latin.R;
|
import org.dslul.openboard.inputmethod.latin.R;
|
||||||
|
|
||||||
public class ColorPickerDialog extends AlertDialog implements SeekBar.OnSeekBarChangeListener {
|
public class ColorPickerDialog extends AlertDialog implements SeekBar.OnSeekBarChangeListener {
|
||||||
protected ColorPickerDialog(Context context, SharedPreferences prefs, String colorPref) {
|
protected ColorPickerDialog(Context context, String title, SharedPreferences prefs, String colorPref) {
|
||||||
super(context);
|
super(context);
|
||||||
setTitle("bla");
|
setTitle(title);
|
||||||
View view = getLayoutInflater().inflate(R.layout.color_dialog, null);
|
View view = getLayoutInflater().inflate(R.layout.color_dialog, null);
|
||||||
mSeekBarRed = (SeekBar)view.findViewById(R.id.seek_bar_dialog_bar_red);
|
mSeekBarRed = (SeekBar)view.findViewById(R.id.seek_bar_dialog_bar_red);
|
||||||
mSeekBarRed.setMax(255);
|
mSeekBarRed.setMax(255);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue