mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-14 22:19:29 +01:00
Amazfit Band 5: enable: world clocks settings, display on lift sensitivity, configuring activity types
This commit is contained in:
parent
c31213c34d
commit
5f73dd79e6
@ -103,6 +103,7 @@ public class AmazfitBand5Coordinator extends HuamiCoordinator {
|
||||
R.xml.devicesettings_custom_emoji_font,
|
||||
R.xml.devicesettings_timeformat,
|
||||
R.xml.devicesettings_dateformat,
|
||||
R.xml.devicesettings_world_clocks,
|
||||
R.xml.devicesettings_nightmode,
|
||||
R.xml.devicesettings_liftwrist_display_sensitivity,
|
||||
R.xml.devicesettings_swipeunlock,
|
||||
|
@ -49,4 +49,16 @@ public class AmazfitBand5Support extends MiBand5Support {
|
||||
public HuamiFWHelper createFWHelper(Uri uri, Context context) throws IOException {
|
||||
return new AmazfitBand5FWHelper(uri, context);
|
||||
}
|
||||
@Override
|
||||
public boolean supportsSunriseSunsetWindHumidity() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void phase3Initialize(TransactionBuilder builder) {
|
||||
super.phase3Initialize(builder);
|
||||
LOG.info("phase3Initialize...");
|
||||
setActivateDisplayOnLiftWristSensitivity(builder); // TODO? Move this to HuamiSupport?
|
||||
setWorkoutActivityTypes(builder); // TODO: Supported by other bands?
|
||||
}
|
||||
}
|
||||
|
@ -20,4 +20,14 @@
|
||||
android:persistent="true"
|
||||
android:summary="@string/bip_prefs_shotcuts_summary"
|
||||
android:title="@string/bip_prefs_shortcuts" />
|
||||
<com.mobeta.android.dslv.DragSortListPreference
|
||||
android:icon="@drawable/ic_activity_unknown_small"
|
||||
android:defaultValue="@array/pref_miband5_workout_activity_types_default"
|
||||
android:dialogTitle="@string/mi5_prefs_workout_activity_types"
|
||||
android:entries="@array/pref_miband5_workout_activity_types"
|
||||
android:entryValues="@array/pref_miband5_workout_activity_types_values"
|
||||
android:key="workout_activity_types_sortable"
|
||||
android:persistent="true"
|
||||
android:summary="@string/mi5_prefs_workout_activity_types_summary"
|
||||
android:title="@string/mi5_prefs_workout_activity_types" />
|
||||
</androidx.preference.PreferenceScreen>
|
||||
|
Loading…
Reference in New Issue
Block a user