WeekDayPicker -> automations
This commit is contained in:
parent
f43e090296
commit
1c95cb107d
|
@ -11,6 +11,7 @@ apply from: "${project.rootDir}/core/android_module_dependencies.gradle"
|
||||||
apply from: "${project.rootDir}/core/allopen_dependencies.gradle"
|
apply from: "${project.rootDir}/core/allopen_dependencies.gradle"
|
||||||
apply from: "${project.rootDir}/core/test_dependencies.gradle"
|
apply from: "${project.rootDir}/core/test_dependencies.gradle"
|
||||||
apply from: "${project.rootDir}/core/jacoco_global.gradle"
|
apply from: "${project.rootDir}/core/jacoco_global.gradle"
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace 'info.nightscout.automation'
|
namespace 'info.nightscout.automation'
|
||||||
}
|
}
|
||||||
|
@ -22,4 +23,6 @@ dependencies {
|
||||||
implementation project(':app-wear-shared:rx')
|
implementation project(':app-wear-shared:rx')
|
||||||
implementation project(':app-wear-shared:shared')
|
implementation project(':app-wear-shared:shared')
|
||||||
implementation project(':interfaces')
|
implementation project(':interfaces')
|
||||||
|
|
||||||
|
api "androidx.constraintlayout:constraintlayout:$constraintlayout_version"
|
||||||
}
|
}
|
|
@ -2,7 +2,7 @@ package info.nightscout.automation.elements
|
||||||
|
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
import androidx.annotation.StringRes
|
import androidx.annotation.StringRes
|
||||||
import info.nightscout.androidaps.utils.ui.WeekdayPicker
|
import info.nightscout.automation.ui.WeekdayPicker
|
||||||
import info.nightscout.automation.R
|
import info.nightscout.automation.R
|
||||||
import java.util.Calendar
|
import java.util.Calendar
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package info.nightscout.androidaps.utils.ui
|
package info.nightscout.automation.ui
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
|
@ -6,9 +6,9 @@ import android.view.LayoutInflater
|
||||||
import android.widget.Checkable
|
import android.widget.Checkable
|
||||||
import androidx.appcompat.widget.AppCompatCheckedTextView
|
import androidx.appcompat.widget.AppCompatCheckedTextView
|
||||||
import androidx.constraintlayout.widget.ConstraintLayout
|
import androidx.constraintlayout.widget.ConstraintLayout
|
||||||
import info.nightscout.androidaps.core.databinding.WeekdayPickerBinding
|
import info.nightscout.automation.databinding.WeekdayPickerBinding
|
||||||
import info.nightscout.shared.extensions.toVisibility
|
import info.nightscout.shared.extensions.toVisibility
|
||||||
import java.util.*
|
import java.util.Calendar
|
||||||
|
|
||||||
class WeekdayPicker constructor(
|
class WeekdayPicker constructor(
|
||||||
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
|
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
|
|
@ -126,4 +126,13 @@
|
||||||
<string name="remove_sort">Remove/sort</string>
|
<string name="remove_sort">Remove/sort</string>
|
||||||
<string name="stop_processing">Stop processing</string>
|
<string name="stop_processing">Stop processing</string>
|
||||||
|
|
||||||
|
<!-- WeekdayPicker -->
|
||||||
|
<string name="monday_short">M</string>
|
||||||
|
<string name="tuesday_short">T</string>
|
||||||
|
<string name="wednesday_short">W</string>
|
||||||
|
<string name="thursday_short">T</string>
|
||||||
|
<string name="friday_short">F</string>
|
||||||
|
<string name="saturday_short">S</string>
|
||||||
|
<string name="sunday_short">S</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
|
@ -434,15 +434,6 @@
|
||||||
<!-- Permissions -->
|
<!-- Permissions -->
|
||||||
<string name="alert_dialog_storage_permission_text">Please reboot your phone or restart AAPS from the System Settings \notherwise Android APS will not have logging (important to track and verify that the algorithms are working correctly)!</string>
|
<string name="alert_dialog_storage_permission_text">Please reboot your phone or restart AAPS from the System Settings \notherwise Android APS will not have logging (important to track and verify that the algorithms are working correctly)!</string>
|
||||||
|
|
||||||
<!-- WeekdayPicker -->
|
|
||||||
<string name="monday_short">M</string>
|
|
||||||
<string name="tuesday_short">T</string>
|
|
||||||
<string name="wednesday_short">W</string>
|
|
||||||
<string name="thursday_short">T</string>
|
|
||||||
<string name="friday_short">F</string>
|
|
||||||
<string name="saturday_short">S</string>
|
|
||||||
<string name="sunday_short">S</string>
|
|
||||||
|
|
||||||
<!-- User Entry -->
|
<!-- User Entry -->
|
||||||
<string name="uel_bolus">BOLUS</string>
|
<string name="uel_bolus">BOLUS</string>
|
||||||
<string name="uel_bolus_calculator">BOLUS CALCULATOR</string>
|
<string name="uel_bolus_calculator">BOLUS CALCULATOR</string>
|
||||||
|
|
Loading…
Reference in a new issue