Loading res/values/strings.xml +13 −13 Original line number Diff line number Diff line Loading @@ -198,28 +198,28 @@ <!-- Content description for "inv" button to hide inverse functions. [CHAR_LIMIT=NONE] --> <string name="desc_inv_on">hide inverse functions</string> <!-- Error displayed when expression evaluates to an undefined result. [CHAR_LIMIT=16] --> <!-- Error displayed when expression evaluates to an undefined result. [CHAR_LIMIT=20] --> <string name="error_nan">Not a number</string> <!-- Error displayed when expression contains a syntax error. [CHAR_LIMIT=16] --> <!-- Error displayed when expression contains a syntax error. [CHAR_LIMIT=20] --> <string name="error_syntax">Bad expression</string> <!-- Error displayed when evaluation is manually aborted. [CHAR_LIMIT=16] --> <!-- Error displayed when evaluation is manually aborted. [CHAR_LIMIT=20] --> <string name="error_aborted">Aborted</string> <!-- Error displayed when excessive precision is required. [CHAR_LIMIT=16] --> <!-- Error displayed when excessive precision is required. [CHAR_LIMIT=20] --> <string name="error_overflow">Infinite?</string> <!-- Error displayed when we diagnose a division by zero. [CHAR_LIMIT=16] --> <string name="error_zero_divide">Division by 0</string> <!-- Error displayed when division by zero is detected. [CHAR_LIMIT=20] --> <string name="error_zero_divide">Can\'t divide by 0</string> <!-- Toast shown when text is copied to the clipboard. [CHAR_LIMIT=40] --> <string name="text_copied_toast">Text copied.</string> <string name="text_copied_toast">Text copied</string> <!-- Dialog message when a computation is cancelled by the user. [CHAR_LIMIT=NONE] --> <string name="cancelled">Computation cancelled!</string> <!-- Button label to dismiss informative text message. [CHAR_LIMIT=12] --> <string name="dismiss">Dismiss</string> <string name="cancelled">Computation cancelled</string> <!-- Dialog message when a computation times out. [CHAR_LIMIT=NONE] --> <string name="timeout">That\'s too hard! Undefined or infinite value?</string> <!-- (Button label for "remove timeout" button. [CHAR_LIMIT=40] --> <string name="ok_remove_timeout">OK, but longer timeouts, please!</string> <string name="timeout">Timed out. Value may be infinite or undefined.</string> <!-- Button label to retry a computation with a longer timeout. [CHAR_LIMIT=40] --> <string name="ok_remove_timeout">Use longer timeouts</string> <!-- Button label to dismiss informative text message. [CHAR_LIMIT=40] --> <string name="dismiss">Dismiss</string> <!-- Appended indicator (for "leading" display) that result is exact. [CHAR_LIMIT=NONE] --> <string name="exact">(exact)</string> <!-- Indicator (for "leading" display) that result is inexact. [CHAR_LIMIT=NONE] --> Loading src/com/android/calculator2/Evaluator.java +11 −14 Original line number Diff line number Diff line Loading @@ -275,7 +275,7 @@ class Evaluator { private void displayCancelledMessage() { new AlertDialog.Builder(mCalculator) .setMessage(R.string.cancelled) .setPositiveButton(android.R.string.ok, .setPositiveButton(R.string.dismiss, new DialogInterface.OnClickListener() { public void onClick(DialogInterface d, int which) { } }) Loading @@ -302,21 +302,18 @@ class Evaluator { // implementation. private void displayTimeoutMessage() { AlertDialog.Builder b = new AlertDialog.Builder(mCalculator); b.setMessage(R.string.timeout) .setNegativeButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface d, int which) { } }); final AlertDialog.Builder builder = new AlertDialog.Builder(mCalculator) .setMessage(R.string.timeout) .setNegativeButton(R.string.dismiss, null /* listener */); if (mTimeout != MAX_TIMEOUT) { b.setPositiveButton(R.string.ok_remove_timeout, builder.setPositiveButton(R.string.ok_remove_timeout, new DialogInterface.OnClickListener() { public void onClick(DialogInterface d, int which) { mTimeout = MAX_TIMEOUT; } }); } b.create().show(); builder.show(); } // Compute initial cache contents and result when we're good and ready. Loading Loading
res/values/strings.xml +13 −13 Original line number Diff line number Diff line Loading @@ -198,28 +198,28 @@ <!-- Content description for "inv" button to hide inverse functions. [CHAR_LIMIT=NONE] --> <string name="desc_inv_on">hide inverse functions</string> <!-- Error displayed when expression evaluates to an undefined result. [CHAR_LIMIT=16] --> <!-- Error displayed when expression evaluates to an undefined result. [CHAR_LIMIT=20] --> <string name="error_nan">Not a number</string> <!-- Error displayed when expression contains a syntax error. [CHAR_LIMIT=16] --> <!-- Error displayed when expression contains a syntax error. [CHAR_LIMIT=20] --> <string name="error_syntax">Bad expression</string> <!-- Error displayed when evaluation is manually aborted. [CHAR_LIMIT=16] --> <!-- Error displayed when evaluation is manually aborted. [CHAR_LIMIT=20] --> <string name="error_aborted">Aborted</string> <!-- Error displayed when excessive precision is required. [CHAR_LIMIT=16] --> <!-- Error displayed when excessive precision is required. [CHAR_LIMIT=20] --> <string name="error_overflow">Infinite?</string> <!-- Error displayed when we diagnose a division by zero. [CHAR_LIMIT=16] --> <string name="error_zero_divide">Division by 0</string> <!-- Error displayed when division by zero is detected. [CHAR_LIMIT=20] --> <string name="error_zero_divide">Can\'t divide by 0</string> <!-- Toast shown when text is copied to the clipboard. [CHAR_LIMIT=40] --> <string name="text_copied_toast">Text copied.</string> <string name="text_copied_toast">Text copied</string> <!-- Dialog message when a computation is cancelled by the user. [CHAR_LIMIT=NONE] --> <string name="cancelled">Computation cancelled!</string> <!-- Button label to dismiss informative text message. [CHAR_LIMIT=12] --> <string name="dismiss">Dismiss</string> <string name="cancelled">Computation cancelled</string> <!-- Dialog message when a computation times out. [CHAR_LIMIT=NONE] --> <string name="timeout">That\'s too hard! Undefined or infinite value?</string> <!-- (Button label for "remove timeout" button. [CHAR_LIMIT=40] --> <string name="ok_remove_timeout">OK, but longer timeouts, please!</string> <string name="timeout">Timed out. Value may be infinite or undefined.</string> <!-- Button label to retry a computation with a longer timeout. [CHAR_LIMIT=40] --> <string name="ok_remove_timeout">Use longer timeouts</string> <!-- Button label to dismiss informative text message. [CHAR_LIMIT=40] --> <string name="dismiss">Dismiss</string> <!-- Appended indicator (for "leading" display) that result is exact. [CHAR_LIMIT=NONE] --> <string name="exact">(exact)</string> <!-- Indicator (for "leading" display) that result is inexact. [CHAR_LIMIT=NONE] --> Loading
src/com/android/calculator2/Evaluator.java +11 −14 Original line number Diff line number Diff line Loading @@ -275,7 +275,7 @@ class Evaluator { private void displayCancelledMessage() { new AlertDialog.Builder(mCalculator) .setMessage(R.string.cancelled) .setPositiveButton(android.R.string.ok, .setPositiveButton(R.string.dismiss, new DialogInterface.OnClickListener() { public void onClick(DialogInterface d, int which) { } }) Loading @@ -302,21 +302,18 @@ class Evaluator { // implementation. private void displayTimeoutMessage() { AlertDialog.Builder b = new AlertDialog.Builder(mCalculator); b.setMessage(R.string.timeout) .setNegativeButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface d, int which) { } }); final AlertDialog.Builder builder = new AlertDialog.Builder(mCalculator) .setMessage(R.string.timeout) .setNegativeButton(R.string.dismiss, null /* listener */); if (mTimeout != MAX_TIMEOUT) { b.setPositiveButton(R.string.ok_remove_timeout, builder.setPositiveButton(R.string.ok_remove_timeout, new DialogInterface.OnClickListener() { public void onClick(DialogInterface d, int which) { mTimeout = MAX_TIMEOUT; } }); } b.create().show(); builder.show(); } // Compute initial cache contents and result when we're good and ready. Loading