Skip to content

Commit

Permalink
minor changes to activity suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Razeeman committed Jan 11, 2025
1 parent 71edda7 commit 8c18ff2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import javax.inject.Inject

class CalculateAdjacentActivitiesInteractor @Inject constructor() {

// Doesn't count multitasked activities.
// TODO count multitask also
// Doesn't count multitask activities.
// Only those that started after current ended.
fun calculateNextActivities(
typeIds: List<Long>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import com.example.util.simpletimetracker.feature_base_adapter.databinding.ItemB

// TODO remove ripple from icon background if background is transparent.
// TODO SUG add backup tests
// TODO SUG add reorder hint
// TODO GOAL add backup tests, raise test file version
fun createButtonAdapterDelegate(
onClick: (ViewData) -> Unit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ fun activitySuggestionListAdapterBindDelegate(
}
}

// TODO refactor with list element from rules?
data class ActivitySuggestionListViewData(
val id: Id,
val text: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ class ActivitySuggestionsViewDataInteractor @Inject constructor(
)
if (index == 0) {
result += HintViewData(
text = resourceRepo.getString(R.string.settings_activity_suggestions),
text = resourceRepo.getString(R.string.settings_activity_suggestions) +
" " +
resourceRepo.getString(R.string.card_order_hint).let { "($it)" },
paddingTop = 0,
paddingBottom = 0,
gravity = HintViewData.Gravity.START,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
android:layout_height="wrap_content"
android:layout_margin="2dp"
android:elevation="0dp"
android:foreground="?selectableItemBackground"
app:cardCornerRadius="@dimen/record_type_card_corner_radius"
app:cardPreventCornerOverlap="false"
app:cardUseCompatPadding="false"
Expand Down

0 comments on commit 8c18ff2

Please sign in to comment.