Mi calculator, does not open.


Lourenzzo!

Members
Jan 28, 2019
288
52
Good afternoon! Mi calculator does not work. Even leaving the default Source. Any solution?

Enviado de meu Redmi Note 5 usando o Tapatalk
 
Same here, mi 9 with miui 12 (clean install)

Log:

Code:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.miui.calculator/com.miui.calculator.cal.CalculatorActivity}: java.lang.IndexOutOfBoundsException: setSpan (-1 ... 19) starts before 0
    at android.app.ActivityThread.performLaunchActivity(Unknown Source:621)
    at android.app.ActivityThread.handleLaunchActivity(Unknown Source:47)
    at android.app.servertransaction.LaunchActivityItem.execute(Unknown Source:63)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(Unknown Source:77)
    at android.app.servertransaction.TransactionExecutor.execute(Unknown Source:73)
    at android.app.ActivityThread$H.handleMessage(Unknown Source:43)
    at android.os.Handler.dispatchMessage(Unknown Source:19)
    at android.os.Looper.loop(Unknown Source:244)
    at android.app.ActivityThread.main(Unknown Source:98)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
    at com.android.internal.os.ZygoteInit.main(Unknown Source:275)
Caused by: java.lang.IndexOutOfBoundsException: setSpan (-1 ... 19) starts before 0
    at android.text.SpannableStringBuilder.checkRange(Unknown Source:46)
    at android.text.SpannableStringBuilder.setSpan(Unknown Source:13)
    at android.text.SpannableStringBuilder.setSpan(Unknown Source:7)
    at com.miui.calculator.common.utils.UserNoticeUtil.c(Unknown Source:65)
    at com.miui.calculator.common.utils.UserNoticeUtil.a(Unknown Source:16)
    at com.miui.calculator.cal.CalculatorTabActivity.n(Unknown Source:21)
    at com.miui.calculator.cal.CalculatorTabActivity.onCreate(Unknown Source:103)
    at com.miui.calculator.cal.CalculatorActivity.onCreate(Unknown Source:9)
    at android.app.Activity.performCreate(Unknown Source:19)
    at android.app.Activity.performCreate(Unknown Source:1)
    at android.app.Instrumentation.callActivityOnCreate(Unknown Source:3)
    at android.app.ActivityThread.performLaunchActivity(Unknown Source:376)
    ... 11 more
 
  • Like
Reactions: Lourenzzo!
Which language? Try to open in English language, so if is fine, change to your language again.
 
Which language? Try to open in English language, so if is fine, change to your language again.
Hi! I use Portuguese. I'll see what you talked about. Thanks for listening.

Enviado de meu Redmi Note 5 usando o Tapatalk
 
Fixed for the next release

Enviado do meu Mi 9 SE através do Tapatalk
Good Morning! If you change the language to English, the calculator will work again. Then just choose the language you want. Hug!

Enviado de meu Redmi Note 5 usando o Tapatalk