Skip to content

Commit

Permalink
Fix Duplicate button for bedtime mode
Browse files Browse the repository at this point in the history
- Now this button is invisible all the time
  • Loading branch information
BlackyHawky committed Apr 14, 2024
1 parent f29132d commit f86234a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ private void bindVibrator(Alarm alarm) {
}

private void bindDuplicateButton() {
if (!getItemHolder().item.equals(
if (getItemHolder().item.equals(
Alarm.getAlarmByLabel(itemView.getContext().getContentResolver(), BedtimeFragment.BEDLABEL))) {
duplicate.setVisibility(View.INVISIBLE);
} else {
duplicate.setVisibility(View.VISIBLE);
}
}
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/alarm_time_expanded.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,12 @@
android:text="@string/duplicate"
android:textColor="?android:attr/textColorPrimaryInverse"
android:textAllCaps="false"
android:visibility="invisible"
app:chipIcon="@drawable/ic_duplicate"
app:chipIconTint="?android:attr/textColorPrimaryInverse"
app:chipBackgroundColor="@color/md_theme_primary"
app:chipStrokeWidth="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/vibrate_onoff"
tools:visibility="visible" />
app:layout_constraintTop_toBottomOf="@id/vibrate_onoff" />

</androidx.constraintlayout.widget.ConstraintLayout>

Expand Down

0 comments on commit f86234a

Please sign in to comment.