Fix bug introduced in last version that causes "Food Log stopped" messages sometimes when the time zone is changed.
Ad-supported: Fix bug that caused a crash in the Settings screen.
Fix some buttons that allowed multiple presses before responding.
Fix calorie counting bug in Entry Editor.
Some other minor changes.
Ad-supported: Switch to new advertising platform MoPub. Please see their privacy policy by following the links from here.
Properly handle foods with zero calories. Previous versions made no distinction between foods with 0 calories or foods that have not had calorie information entered. Now, you will see a blank space in the Food Editor's Calorie setting if the food does not have calorie information.
In addition, if calorie counting is turned on in the Settings, the calorie counts will have an asterisk (*) if any of the foods do not have their calories entered in the database.
The Settings (calorie limits, hide time zone setting) are now exported and imported from CSV files.
Some minor enhancements.
Fix bug in saving templates.
Hopefully fix a transient bug that sometimes happens when a date is first selected in the Calendar screen.
Fix a calorie highlighting bug in the Entry Editor.
Update compiler settings to use target SDK 28 per Google requirements. Also update supporting libraries to latest versions.
Created an ad-free version of Food Log that users can buy. The "Food Log - Ad Free" app works exactly the same as ad-supported "Food Log" except it does not show any ads.
Fix some merge bugs with time zones and entries with no foods.
Add clipboard paste capability for ingredient names in Food Editor. This capability was lost when the ingredient rename feature was added a few versions ago.
In the Food Editor, now you can search for other foods that contain an ingredient.
New feature Entry Templates let you store and recall frequently used sets of foods for entries. For example, if most days you have a breakfast with cereal, milk, toast, and eggs, you can save those in a template. When in the Entry Editor you can load the template which will fill out the foods, number of servings and notes from the template. See the User's Manual for more info.
In the Calendar screen, long-pressing the "Add Entry" button now acts like the "New Entry" button from Main screen - it creates an entry for the current time and date, no matter what the selected date is in the calendar.
A normal press on the "New Entry" button will still work the same as it did before - creating an entry for the selected date in the calendar.
Change the file chooser used to select a file when merging.
A few other minor bug fixes.
Fix bug that caused a crash in the Search screen when multiple Food / Ingredient rows were added then some were deleted.
Generally, do a better job of handling focus changes in the Entry Editor, Food Editor and Search screens.
Set targetSdkVersion to 26 per Google requirements.
The advertiser's privacy policy has been updated. See this link for their privacy policy. (The Food Log privacy policy has not changed.)
Fix bug introduced in version 1.9.1 where changing the device time zone would sometimes show a "Food Log has stopped" message when Food Log is not running.
In cases where the app was put in the background but was killed by the system to free memory, if the app is restarted in the Calendar screen in portrait orientation it did not show any data. Fixed.
The Calendar screen and the Search Results screen did not handle the device's time zone changing correctly. Fixed.
A certain sequence of actions involving help mode in the Food Search screen could cause the food or ingredient auto complete list to be shown in the wrong screen. Fixed.
In the Entry Editor, in some cases, when in help mode any new foods were still editable. Fixed.
In the Entry and Food Editors, when editing an existing entry or food, rotating the device caused editor to lose the lock on the entry or food. This could have caused some changes to be lost if the same entry/food was edited multiple times. Fixed.
In the Calendar screen, when the device is in portrait orientation the calendar and entries are now shown in different tabs, instead of having the calendar on top and entries on the bottom. This will show the entries better for smaller devices.
Attempt to fix a sporadic bug that causes the app to crash because it cannot save or restore its internal state.
Now supports content:// URIs from other apps. These are sometimes used when you use another app to send a CSV file to Food Log to import or merge it into the database.
Use the latest version of AppLovin SDK to display ads.
Other small enhancements.
Fix bug that sometimes caused Food Log to crash when restarting. This happened when the Food Log app is put into the background and other apps are run. If the device gets low on memory it will terminate apps in the background. If the user tries to go back to the Food Log app it would crash.
Added an option in the Settings screen to hide time zones - entry times will be displayed without the time zone.
A few other small bug fixes.
Entries now have a time zone associated with them. By default all new entries will use the device's time zone, but if you are travelling across time zones and your device does not automatically adjust its time zone, you can change the entry's time zone to the correct one.
You can also change the time zone of old entries. Old entries' time zones are set to the device's time zone when you first run this version of Food Log.
Relaunching the app from the home screen takes you to the last Food Log screen displayed instead of the main menu. In versions 1.4 through 1.6.1 relaunching from the home screen would always take you back to the main menu.
Added some shortcuts to get to the Search screen. In the Food Editor, long-pressing the name of the food or an ingredient of the food can take you to the Search screen to search for entries containing that food or ingredient.
A side effect of this is that now it is possible to edit the same food or entry more than once. If this happens the Food or Entry Editor will go into read-only mode; you can only view the food or entry details, no changes are allowed.
Note that importing will erase any changes you have made since the CSV file was created.
The CSV file format has been slightly changed from the previous version. This version can still import CSV files written with the previous version.
For example, let's say you are searching for entries with foods / ingredients A, B and C. In previous versions of FoodLog an entry would match only if it had foods A, B and C or if the entry's foods' ingredient list had ingredients A, B and C. You could not mix searching for foods and ingredients; A, B and C had to be all food names or all ingredient names. Now, an entry will match if it has either foods and/or ingredients named A, B and C.
© Yasantha Samarasekera 2021
$Id: 87ce35324708148dd4c84a3c7048985ed12f80de 2021-03-24 19:45:55 -0700 $