Merge pull request #1580 from Andries-Smit/chore/remove-style
Chore remove redundant style
This commit is contained in:
commit
b644df9424
6 changed files with 30 additions and 66 deletions
|
@ -130,7 +130,7 @@ class WizardDialog : DaggerDialogFragment() {
|
||||||
val useSuperBolus = sp.getBoolean(R.string.key_usesuperbolus, false)
|
val useSuperBolus = sp.getBoolean(R.string.key_usesuperbolus, false)
|
||||||
binding.sbCheckbox.visibility = useSuperBolus.toVisibility()
|
binding.sbCheckbox.visibility = useSuperBolus.toVisibility()
|
||||||
binding.superBolusRow.visibility = useSuperBolus.toVisibility()
|
binding.superBolusRow.visibility = useSuperBolus.toVisibility()
|
||||||
binding.notesLayout.visibility = sp.getBoolean(R.string.key_show_notes_entry_dialogs, false).toVisibility()
|
binding.notesLayout.root.visibility = sp.getBoolean(R.string.key_show_notes_entry_dialogs, false).toVisibility()
|
||||||
|
|
||||||
val maxCarbs = constraintChecker.getMaxCarbsAllowed().value()
|
val maxCarbs = constraintChecker.getMaxCarbsAllowed().value()
|
||||||
val maxCorrection = constraintChecker.getMaxBolusAllowed().value()
|
val maxCorrection = constraintChecker.getMaxBolusAllowed().value()
|
||||||
|
@ -327,7 +327,7 @@ class WizardDialog : DaggerDialogFragment() {
|
||||||
binding.carbsInput.value = carbsPassedIntoWizard
|
binding.carbsInput.value = carbsPassedIntoWizard
|
||||||
}
|
}
|
||||||
if (notesPassedIntoWizard.isNotBlank()) {
|
if (notesPassedIntoWizard.isNotBlank()) {
|
||||||
binding.notes.setText(notesPassedIntoWizard)
|
binding.notesLayout.notes.setText(notesPassedIntoWizard)
|
||||||
}
|
}
|
||||||
val profile = profileFunction.getProfile()
|
val profile = profileFunction.getProfile()
|
||||||
val profileStore = activePlugin.activeProfileSource.profile
|
val profileStore = activePlugin.activeProfileSource.profile
|
||||||
|
@ -427,7 +427,7 @@ class WizardDialog : DaggerDialogFragment() {
|
||||||
binding.ttCheckbox.isChecked,
|
binding.ttCheckbox.isChecked,
|
||||||
binding.bgTrendCheckbox.isChecked,
|
binding.bgTrendCheckbox.isChecked,
|
||||||
binding.alarm.isChecked,
|
binding.alarm.isChecked,
|
||||||
binding.notes.text.toString(),
|
binding.notesLayout.notes.text.toString(),
|
||||||
carbTime,
|
carbTime,
|
||||||
usePercentage = usePercentage,
|
usePercentage = usePercentage,
|
||||||
totalPercentage = percentageCorrection
|
totalPercentage = percentageCorrection
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="@string/filter"
|
android:hint="@string/filter"
|
||||||
android:textColorHint="?attr/colorOnPrimary"
|
|
||||||
app:endIconMode="clear_text">
|
app:endIconMode="clear_text">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
|
|
@ -49,9 +49,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="10dp"
|
android:layout_marginBottom="10dp"
|
||||||
android:hint="@string/profiletype"
|
android:hint="@string/profiletype">
|
||||||
android:textColorHint="?attr/tabBgColorSelected"
|
|
||||||
app:boxStrokeColor="?attr/tabBgColorSelected">
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
android:id="@+id/profile_type"
|
android:id="@+id/profile_type"
|
||||||
|
@ -213,8 +211,7 @@
|
||||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="@string/selected_profile"
|
android:hint="@string/selected_profile">
|
||||||
app:boxStrokeColor="?attr/boxStrokeColor">
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
android:id="@+id/available_profile_list"
|
android:id="@+id/available_profile_list"
|
||||||
|
@ -241,8 +238,7 @@
|
||||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="@string/careportal_profileswitch"
|
android:hint="@string/careportal_profileswitch">
|
||||||
app:boxStrokeColor="?attr/boxStrokeColor">
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
android:id="@+id/profileswitch_list"
|
android:id="@+id/profileswitch_list"
|
||||||
|
|
|
@ -211,34 +211,9 @@
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<include
|
||||||
android:id="@+id/notes_layout"
|
android:id="@+id/notes_layout"
|
||||||
android:layout_width="match_parent"
|
layout="@layout/notes" />
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:labelFor="@+id/notes"
|
|
||||||
android:padding="10dp"
|
|
||||||
android:text="@string/notes_label"
|
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
||||||
android:textStyle="bold" />
|
|
||||||
|
|
||||||
<EditText
|
|
||||||
android:id="@+id/notes"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_gravity="center_vertical"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:autofillHints="@string/notes_label"
|
|
||||||
android:gravity="start"
|
|
||||||
android:inputType="text|textCapSentences"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/checkbox_row"
|
android:id="@+id/checkbox_row"
|
||||||
|
|
|
@ -21,10 +21,7 @@
|
||||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:boxStrokeColor="@color/mtrl_textinput_default_box_stroke_color"
|
|
||||||
android:hint="@string/filter"
|
android:hint="@string/filter"
|
||||||
android:textColorHint="?attr/colorOnPrimary"
|
|
||||||
app:hintTextColor="?attr/colorOnPrimary"
|
|
||||||
app:startIconDrawable="@android:drawable/ic_menu_search"
|
app:startIconDrawable="@android:drawable/ic_menu_search"
|
||||||
app:endIconMode="clear_text">
|
app:endIconMode="clear_text">
|
||||||
|
|
||||||
|
|
|
@ -1,35 +1,32 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:id="@+id/notes_layout"
|
android:id="@+id/notes_layout"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
android:orientation="horizontal">
|
||||||
android:hint="@string/notes_label"
|
|
||||||
app:boxStrokeColor="@color/mtrl_textinput_default_box_stroke_color"
|
|
||||||
android:textColorHint="?attr/colorOnPrimary"
|
|
||||||
app:hintTextColor="?attr/colorOnPrimary"
|
|
||||||
app:endIconMode="clear_text">
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/notes"
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="10dp"
|
android:hint="@string/notes_label"
|
||||||
android:layout_marginEnd="10dp"
|
app:endIconMode="clear_text">
|
||||||
android:layout_gravity="center_vertical"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:autofillHints="@string/notes_label"
|
|
||||||
android:gravity="start"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:width="180dp"
|
|
||||||
android:inputType="text|textCapSentences" />
|
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/notes"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_marginStart="10dp"
|
||||||
|
android:layout_marginEnd="10dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:width="180dp"
|
||||||
|
android:autofillHints="@string/notes_label"
|
||||||
|
android:gravity="start"
|
||||||
|
android:inputType="text|textCapSentences"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
Loading…
Reference in a new issue