BenAlderfer / RIT-Dining-Planner-Android

Dining Planner Android app customized for RIT
GNU General Public License v3.0
1 stars 0 forks source link

calculate with errors #11

Open BenAlderfer opened 8 years ago

BenAlderfer commented 8 years ago

Allow calculations with warning message like on web

panwarab commented 8 years ago

@BenAlderfer I need your help here. Please elaborate exactly what type of warning message (you can refer to styling or any sort of thing that you want) , then I will try to work on that.

P.S. Please let me know if there are any Code Conventions to follow.

BenAlderfer commented 8 years ago

Warning messages are shown in snackbars. The messages to show will be the same as the web version: https://github.com/BenAlderfer/RIT-Dining-Planner-Web

The idea of this is to calculate as soon as possible but let users know if the numbers may be wrong. An example of one of these messages is "Today is not in the date range and some calculations may be off.". This is allowed since the average calculations will still be correct over the date range, but the current calculations will be off due to being outside the date range.

For coding conventions, its mostly standard java conventions. Camelcase variables and methods, block comments above every method, braces on the same line, indent with spaces, variable names reflect their function.

When making a Pull Request, use the work branch. I don't merge work into master until I've tested it and approved it.