fix color dialog title

This commit is contained in:
Helium314 2023-07-07 07:13:36 +02:00
parent c53224dd2b
commit bc159f5e3c
2 changed files with 3 additions and 3 deletions

View file

@ -185,7 +185,7 @@ class AppearanceSettingsFragment : SubScreenFragment(), Preference.OnPreferenceC
3 -> Settings.PREF_THEME_USER_COLOR_ACCENT
else -> Settings.PREF_THEME_USER_COLOR_KEYS
}
val d = ColorPickerDialog(activity, sharedPreferences, pref)
val d = ColorPickerDialog(activity, items[i], sharedPreferences, pref)
d.show()
}
.show()

View file

@ -30,9 +30,9 @@ import android.widget.TextView;
import org.dslul.openboard.inputmethod.latin.R;
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);
setTitle("bla");
setTitle(title);
View view = getLayoutInflater().inflate(R.layout.color_dialog, null);
mSeekBarRed = (SeekBar)view.findViewById(R.id.seek_bar_dialog_bar_red);
mSeekBarRed.setMax(255);