Skip to content

Commit

Permalink
Shorten changelog and improve overview page layout calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
patzly committed Nov 26, 2023
1 parent f74749d commit 55e0ff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void onGlobalLayout() {
int containerWidthStock = binding.scrollHorizActionsStockOverview.getWidth();
int buttonWidthStock = binding.linearStockActionsContainer.getWidth();
boolean isScrollableStock
= buttonWidthStock >= containerWidthStock - UiUtil.dpToPx(activity, 16);
= buttonWidthStock >= containerWidthStock - UiUtil.dpToPx(activity, 32);
if (isScrollableStock) {
binding.buttonInventoryText.setVisibility(View.GONE);
binding.buttonInventoryIcon.setVisibility(View.VISIBLE);
Expand All @@ -173,7 +173,7 @@ public void onGlobalLayout() {
int containerWidthShopping = binding.scrollHorizActionsShoppingList.getWidth();
int buttonWidthShopping = binding.linearShoppingListActionsContainer.getWidth();
boolean isScrollableShopping
= buttonWidthShopping >= containerWidthShopping - UiUtil.dpToPx(activity, 16);
= buttonWidthShopping >= containerWidthShopping - UiUtil.dpToPx(activity, 32);
if (isScrollableShopping) {
binding.buttonShoppingText.setVisibility(View.GONE);
binding.buttonShoppingIcon.setVisibility(View.VISIBLE);
Expand Down
38 changes: 1 addition & 37 deletions app/src/main/res/raw/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
- Fixed: Product information not saved when going back (#765)
- Fixed: Missing delete confirmation in recipe edit mode (#764)

? Sorry for any inconvenience caused by the bugs above.
Other bug fixes and new features will come soon, once the main developer of this app
finishes his computer science studies in a few weeks.

## 3.3.1

- New: Compatibility for server version 4.0.1
Expand Down Expand Up @@ -167,36 +163,4 @@ release variant (thanks @alfonso133)
- Fixed: Disabled features with Home Assistant add-on were not disabled in app (#713)
- Fixed: Shortcut for new task was not working anymore after first usage
- Fixed: Swipe gestures accessed wrong item in list after first usage (#686)
- Fixed: Never requested notification permission so reminders may have not worked on Android 13+

## 3.2.1

- Fixed: Random crash with no reason (#699)
- Fixed: Prevent another crash after reopening app from background (#697)
- Fixed: Product pictures not loading (with Home Assistant or not, we don't know) (#700)
- Fixed: Overview and stock page not populated after theme change or other cases (#692, #695)
- Fixed: Crash on stock page with opened product overview sheet in some cases (#673)

## 3.2.0

- New: Catalan, Estonian and Portuguese (Brazil) translations. Many thanks for your contributions!
- New: Product pictures on stock & master products list if at least one picture is available (#536)
- New: Grid layout for recipes list
- New: Many pages of the app now can be opened using NFC tags with URI (thanks @codesalatdev) (#676)
- Improved: In-app help now contains a list of the supported URIs that can be used for Intents
- Improved: Menu button in bottom app bar now can be hidden in behavior settings
- Improved: Scrollbar is shown in scrollable lists
- Improved: Better logic on login page for receiving Home Assistant session token (#670)
- Improved: Logging on login page for Home Assistant connection (#670)
- Improved: Moved shortcuts option from behavior to appearance settings
- Improved: Added option for quick mode state when using scan button on overview page (#540, #648)
- Improved: Added separate buttons for shopping mode and new task to overview start page
- Improved: Updated plural rules for quantity units in all project languages from Transifex
- Improved: Better indication of invalid fields on unit conversion edit page (#682)
- Improved: themed icon support for app shortcuts
- Fixed: Home Assistant offline error (#670)
- Fixed: On login pages all barcode formats were allowed, now only QR code format is recognized
- Fixed: Deprecated Google Play developer profile link
- Fixed: Demo domain change with translation which has a specific region
- Fixed: Focused input field covered by keyboard
- Fixed: Crashes where parsing a wrong formatted decimal number was the reason (again #652)
- Fixed: Never requested notification permission so reminders may have not worked on Android 13+

0 comments on commit 55e0ff1

Please sign in to comment.