bfffafdedddbbd1d6d8d0ab15130753b1b31affc |
|
26-Jan-2017 |
Annie Chin <afchin@google.com> |
Snapshot display empty state once on creation of HistoryFragment. Bug: 34698125 Test: Pasting while dragging history down no longer causes crashes. Remove EvaluatorStateUtils since we now only check the display state once. Change-Id: I22d0f3f0c967abcd8a8f70dd4cc157247bea8bed
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
8861323dcc360b12de1c369fcb84e88d634cfcb7 |
|
04-Jan-2017 |
Annie Chin <afchin@google.com> |
Polish History multiwindow support. Fixes: 34081054 Fixes: 34081005 Fixes: 32987283 -Hide quick result from current expression when we are in one-line display mode. -Adjust bottom padding for history item in one-line mode. -Add font padding when bottom padding for items is 0 to prevent running into the bottom edge of the display. Change-Id: Icf3ddd4951ac0e4ab680124ecff7dd5258ccc05f
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
7d03963e1c33914b789321f898fe1519a011857f |
|
09-Dec-2016 |
Annie Chin <afchin@google.com> |
Do not use Fragment#getContext() Fixes: 33457680 -getContext() was causing crashes on L. -Also call HistoryAdapter.setEvaluator() in HistoryFragment.onActivityCreated() -Remove mCurrentExpressionDescription and just use the resource id Change-Id: Ie88c4a80d162d5719627bb3cac4afc4ceef7caf1
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
36147983cb821ede03f569a562133a08cac9bcdf |
|
02-Dec-2016 |
Annie Chin <afchin@google.com> |
Implement grouped headers. Fixes: 32943152 Fixes: 33203390 Fixes: 33105914 -Add divider -Adjust padding to better match spec -Make HistoryFormula/Result padding match DisplayFormula/Result padding Change-Id: I5e5a7e61079b6d1367bf61f4c88dd79555f4bcb7
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
31ea252f1a807c19611ba20e98bbf6db255719f8 |
|
24-Nov-2016 |
Hans Boehm <hboehm@google.com> |
Clean up Calculator state, evaluation and cancellation logic Bug: 33216049 Bug: 33219408 Bug: 33107696 Add INIT_FOR_RESULT state to represent INIT state, when we know that computation has previously ended in RESULT state. Stubbornly refuse to display the history view if we are currently in EVALUATE or INIT state. Both of these are very temporary. Break up Calculator.onCreate() to make it a bit more manageable. Add a number of assertion checks to detect unexpected states, etc. Add HISTORY_MAIN_INDEX to ensure that we only have one evaluation listener per expression being evaluated. Add cancelNonMain to better target cancellation requests. Remove evaluateInstantIfNecessary() hack in HistoryFragment. We should no longer be randomly cancelling evaluations we don't own. Be a little more aggressive about avoid redundant evaluations. Change-Id: I5eaf6390b597926f9255c635fb44d50b47cbd1e1
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
8149c8c2f02a3a6aae34d8d8b3bc67ce0f56378c |
|
28-Nov-2016 |
Annie Chin <afchin@google.com> |
Use AlignedTextView for History Formulas. Fixes: 33109121 Change-Id: Ida281a42669f166ee051521a43545826a12af782
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
94c1bd954266677f3e6bdd00741eaf4db6881c18 |
|
23-Nov-2016 |
Annie Chin <afchin@google.com> |
Fix isResultLayout() Bug: 33105525 Bug: 33106867 Also reinitialize the dragController so it can keep up on rotation or background display changes. Change-Id: Ic1846bc4495196c35ebd4d4ac78f61078dca7573
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
b636c2a4850f67fdf9a3e06c7d891bf545ef32e5 |
|
22-Nov-2016 |
Annie Chin <afchin@google.com> |
Fix getEvaluatorIndex() There is no current exprsesion when we are in the RESULT state. Change-Id: I4fea168641046e1305f5489d304863dc76fdfc99
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
70ac8eafeb18711e427d512dcbb3089977521df8 |
|
18-Nov-2016 |
Annie Chin <afchin@google.com> |
Fix animation for RESULT state. Fixes: 32948596 Introduce isResultState() and pass its value to HistoryAdapter. We actually can't accurately determine RESULT state from the Evaluator. Change-Id: Ie50c5743fac8af680073c60a3e9cc9b58ccff167
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
9179623c3d2530f9ccfd1b542c0416317422ca0c |
|
17-Nov-2016 |
Annie Chin <afchin@google.com> |
Miscellaneous fixes -Fix fragment animation on exit -Use DateUtils.RelativeTimeSpanString instead of SimpleDateFormat -Fix RecyclerView ordering and remove arbitrary "25" pre-seeding -Cancel evaluation for only the id corresponding to the recycled ViewHolder Fixes: 32918645 Fixes: 32945018 Fixes: 33000429 Change-Id: I55e3a101a02aec8fe03d43ad0b60343d1fa36940
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
bc001888ca055a2edc5c58fdded97054cc51a9c9 |
|
10-Nov-2016 |
Annie Chin <afchin@google.com> |
Handle text animation in different display situations. Bug: 31623549 Test: Manually pull down animation in 4 situations. Create different controllers to handle when display -Is empty -Has input and quick result -Has input but no quick result -Is only displaying the result Start using reverseLayout instead of stackFromEnd (had issues). Change-Id: I72de7f22f8eda035ef82edeb44b57c06acc1be95
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
06fd3cf86f20a8b927c8b57ef9e94ee48bee46ff |
|
08-Nov-2016 |
Annie Chin <afchin@google.com> |
Integrate database with history. Bug: 31623549 Note: This CL operates under the assumption that there is something in the current expression field (handling for various states of CalculatorDisplay in ag/1613446) Change-Id: I70992067ddc9c5eec079f00604549727787e26fe
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
ab657d463740bfc4322f1c06da80bea9c14e993c |
|
04-Nov-2016 |
Annie Chin <afchin@google.com> |
Add "No History" view. Bug: 31623549 Test: Use a one-element array in HistoryFragment.testArray This view displays when there is only one element (the current expression) in the Adapter. Change-Id: I418559c6d6b742053861a0d7783fa5fd4c329c56
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
d0f87d20ad9078fd885b3e1f8366f7a07c9b0ac6 |
|
24-Oct-2016 |
Annie Chin <afchin@google.com> |
Animate CalculatorDisplay text on pulldown. Bug: 31623549 Bug: 32584801 Change-Id: I07a54cad38c026357082b86ad026392f72693e22
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
4b3af0578b1a44038856bc56244aea8aaeac22d1 |
|
28-May-2014 |
Justin Klaassen <justinklaassen@google.com> |
Overhaul Calculator UI. Bug: 14418545 Bug: 14419084 Bug: 14419142 Bug: 14420277 Bug: 14466652 Bug: 14564559 Bug: 14564608 Bug: 14846724 Bug: 15090154 Bug: 15287699 Bug: 15289526 Bug: 15289616 Change-Id: I93e1530446d5bd6a4c3189f751c88ece1abc7767
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
461992df853ace2b0624aac4e372d3ed8efc7059 |
|
07-Mar-2014 |
Alan Viverette <alanv@google.com> |
Clean up calculator BUG: 13340961 Change-Id: Idb1bdc8f49cf66e8a1412a9eaa3458b85f5c5124
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
8bea49415c6de57f7e14517bf64769d24e3f099d |
|
03-Mar-2014 |
Alan Viverette <alanv@google.com> |
Quantum of Calculator Change-Id: Ic79777951621c42f03e7da9dd73c350f5182f48e
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
c249f2edd5d7e03cae1970576e5909d012e0166e |
|
28-Nov-2011 |
Vikram Aggarwal <viki@google.com> |
Revert "Clean up calculator source code." This reverts commit 527c9079a6752a969c79daa794dc860b42326929 CalculatorViewPager is referenced in main.xml, and cannot be deleted.
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
527c9079a6752a969c79daa794dc860b42326929 |
|
18-Nov-2011 |
Vikram Aggarwal <viki@google.com> |
Clean up calculator source code. Delete unused classes and unused code. No change in functionality. Change-Id: I53a23430d64f6b9b852a249749397da7cead6aed
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
b301ed2e1720fc9190eaf99ab33b5f49eabcebc5 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
852aa32e662b10b68ca4af100ef424b6229b07ac |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|
979004c651c1dc2327c4d74688cbaa5cbb9f08e1 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/packages/apps/ExactCalculator/src/com/android/calculator2/HistoryAdapter.java
|