Loading res/values-bn/strings.xml +1 −1 Original line number Diff line number Diff line Loading @@ -75,7 +75,7 @@ <string name="approximate" msgid="7117143366610670836">"(±১ শেষের ডিজিটের মধ্যে)"</string> <string name="menu_leading" msgid="2338520833272667740">"লিডিং সংখ্যায় উত্তর"</string> <string name="menu_fraction" msgid="1247477377840252234">"ভগ্নাংশ হিসাবে উত্তর"</string> <string name="menu_licenses" msgid="1890541368064108592">"মুক্ত উৎস লাইসেন্সগুলি"</string> <string name="menu_licenses" msgid="1890541368064108592">"ওপেন সোর্স লাইসেন্স"</string> <string name="menu_history" msgid="9006222701220105452">"ইতিহাস"</string> <string name="menu_clear_history" msgid="2336526604226069572">"সাফ করুন"</string> <string name="title_history" msgid="7820912156315181539">"ইতিহাস"</string> Loading src/com/android/calculator2/Calculator.java +14 −7 Original line number Diff line number Diff line Loading @@ -535,9 +535,6 @@ public class Calculator extends Activity } public boolean isResultLayout() { if (mCurrentState == CalculatorState.ANIMATE) { throw new AssertionError("impossible state"); } // Note that ERROR has INPUT, not RESULT layout. return mCurrentState == CalculatorState.INIT_FOR_RESULT || mCurrentState == CalculatorState.RESULT; Loading Loading @@ -1339,7 +1336,14 @@ public class Calculator extends Activity */ private boolean prepareForHistory() { if (mCurrentState == CalculatorState.ANIMATE) { throw new AssertionError("onUserInteraction should have ended animation"); // End the current animation and signal that preparation has failed. // onUserInteraction is unreliable and onAnimationEnd() is asynchronous, so we // aren't guaranteed to be out of the ANIMATE state by the time prepareForHistory is // called. if (mCurrentAnimator != null) { mCurrentAnimator.end(); } return false; } else if (mCurrentState == CalculatorState.EVALUATE) { // Cancel current evaluation cancelIfEvaluating(true /* quiet */ ); Loading @@ -1366,12 +1370,15 @@ public class Calculator extends Activity } private void showHistoryFragment() { final FragmentManager manager = getFragmentManager(); if (manager == null || manager.isDestroyed()) { if (getHistoryFragment() != null) { // If the fragment already exists, do nothing. return; } if (getHistoryFragment() != null || !prepareForHistory()) { final FragmentManager manager = getFragmentManager(); if (manager == null || manager.isDestroyed() || !prepareForHistory()) { // If the history fragment can not be shown, close the draglayout. mDragLayout.setClosed(); return; } Loading src/com/android/calculator2/DragLayout.java +8 −9 Original line number Diff line number Diff line Loading @@ -209,16 +209,13 @@ public class DragLayout extends ViewGroup { return mIsOpen; } private void setClosed() { if (mIsOpen) { public void setClosed() { mIsOpen = false; mHistoryFrame.setVisibility(View.INVISIBLE); if (mCloseCallback != null) { mCloseCallback.onClose(); } } } public Animator createAnimator(boolean toOpen) { if (mIsOpen == toOpen) { Loading Loading @@ -350,7 +347,9 @@ public class DragLayout extends ViewGroup { settleToOpen = releasedChild.getTop() > -(mVerticalRange / 2); } if (mDragHelper.settleCapturedViewAt(0, settleToOpen ? 0 : -mVerticalRange)) { // If the view is not visible, then settle it closed, not open. if (mDragHelper.settleCapturedViewAt(0, settleToOpen && mIsOpen ? 0 : -mVerticalRange)) { ViewCompat.postInvalidateOnAnimation(DragLayout.this); } } Loading Loading
res/values-bn/strings.xml +1 −1 Original line number Diff line number Diff line Loading @@ -75,7 +75,7 @@ <string name="approximate" msgid="7117143366610670836">"(±১ শেষের ডিজিটের মধ্যে)"</string> <string name="menu_leading" msgid="2338520833272667740">"লিডিং সংখ্যায় উত্তর"</string> <string name="menu_fraction" msgid="1247477377840252234">"ভগ্নাংশ হিসাবে উত্তর"</string> <string name="menu_licenses" msgid="1890541368064108592">"মুক্ত উৎস লাইসেন্সগুলি"</string> <string name="menu_licenses" msgid="1890541368064108592">"ওপেন সোর্স লাইসেন্স"</string> <string name="menu_history" msgid="9006222701220105452">"ইতিহাস"</string> <string name="menu_clear_history" msgid="2336526604226069572">"সাফ করুন"</string> <string name="title_history" msgid="7820912156315181539">"ইতিহাস"</string> Loading
src/com/android/calculator2/Calculator.java +14 −7 Original line number Diff line number Diff line Loading @@ -535,9 +535,6 @@ public class Calculator extends Activity } public boolean isResultLayout() { if (mCurrentState == CalculatorState.ANIMATE) { throw new AssertionError("impossible state"); } // Note that ERROR has INPUT, not RESULT layout. return mCurrentState == CalculatorState.INIT_FOR_RESULT || mCurrentState == CalculatorState.RESULT; Loading Loading @@ -1339,7 +1336,14 @@ public class Calculator extends Activity */ private boolean prepareForHistory() { if (mCurrentState == CalculatorState.ANIMATE) { throw new AssertionError("onUserInteraction should have ended animation"); // End the current animation and signal that preparation has failed. // onUserInteraction is unreliable and onAnimationEnd() is asynchronous, so we // aren't guaranteed to be out of the ANIMATE state by the time prepareForHistory is // called. if (mCurrentAnimator != null) { mCurrentAnimator.end(); } return false; } else if (mCurrentState == CalculatorState.EVALUATE) { // Cancel current evaluation cancelIfEvaluating(true /* quiet */ ); Loading @@ -1366,12 +1370,15 @@ public class Calculator extends Activity } private void showHistoryFragment() { final FragmentManager manager = getFragmentManager(); if (manager == null || manager.isDestroyed()) { if (getHistoryFragment() != null) { // If the fragment already exists, do nothing. return; } if (getHistoryFragment() != null || !prepareForHistory()) { final FragmentManager manager = getFragmentManager(); if (manager == null || manager.isDestroyed() || !prepareForHistory()) { // If the history fragment can not be shown, close the draglayout. mDragLayout.setClosed(); return; } Loading
src/com/android/calculator2/DragLayout.java +8 −9 Original line number Diff line number Diff line Loading @@ -209,16 +209,13 @@ public class DragLayout extends ViewGroup { return mIsOpen; } private void setClosed() { if (mIsOpen) { public void setClosed() { mIsOpen = false; mHistoryFrame.setVisibility(View.INVISIBLE); if (mCloseCallback != null) { mCloseCallback.onClose(); } } } public Animator createAnimator(boolean toOpen) { if (mIsOpen == toOpen) { Loading Loading @@ -350,7 +347,9 @@ public class DragLayout extends ViewGroup { settleToOpen = releasedChild.getTop() > -(mVerticalRange / 2); } if (mDragHelper.settleCapturedViewAt(0, settleToOpen ? 0 : -mVerticalRange)) { // If the view is not visible, then settle it closed, not open. if (mDragHelper.settleCapturedViewAt(0, settleToOpen && mIsOpen ? 0 : -mVerticalRange)) { ViewCompat.postInvalidateOnAnimation(DragLayout.this); } } Loading