You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
App crash if we enter large values to Sample, bins or numbers in settings
Expected Behavior
App should not crash and accept the entered value
Steps to reproduce it
Open the settings in the app
Enter a value of more than 8 digits
App Crash
LogCat for the issue E/AndroidRuntime: FATAL EXCEPTION: main Process: io.neurolab, PID: 3162 java.lang.NumberFormatException: For input string: "4454858874" at java.lang.Integer.parseInt(Integer.java:524) at java.lang.Integer.valueOf(Integer.java:611) at io.neurolab.fragments.NeuroSettingsFragment.onSharedPreferenceChanged(NeuroSettingsFragment.java:64) at android.app.SharedPreferencesImpl$EditorImpl.notifyListeners(SharedPreferencesImpl.java:479) at android.app.SharedPreferencesImpl$EditorImpl.apply(SharedPreferencesImpl.java:387) at android.support.v7.preference.Preference.tryCommit(Preference.java:1613) at android.support.v7.preference.Preference.persistString(Preference.java:1644) at android.support.v7.preference.EditTextPreference.setText(EditTextPreference.java:69) at com.takisoft.fix.support.v7.preference.EditTextPreference.setText(EditTextPreference.java:37) at com.takisoft.fix.support.v7.preference.EditTextPreferenceDialogFragmentCompat.onDialogClosed(EditTextPreferenceDialogFragmentCompat.java:90) at android.support.v7.preference.PreferenceDialogFragmentCompat.onDismiss(PreferenceDialogFragmentCompat.java:270) at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1337) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:165) at android.app.ActivityThread.main(ActivityThread.java:6375) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
Screenshots of the issue
System Information
Device
Redmi Note 4
Android version/OS
Nougat 7.0
Would you like to work on the issue?
Yes
The text was updated successfully, but these errors were encountered:
Describe the bug
App crash if we enter large values to Sample, bins or numbers in settings
Expected Behavior
App should not crash and accept the entered value
Steps to reproduce it
Open the settings in the app
Enter a value of more than 8 digits
App Crash
LogCat for the issue
E/AndroidRuntime: FATAL EXCEPTION: main Process: io.neurolab, PID: 3162 java.lang.NumberFormatException: For input string: "4454858874" at java.lang.Integer.parseInt(Integer.java:524) at java.lang.Integer.valueOf(Integer.java:611) at io.neurolab.fragments.NeuroSettingsFragment.onSharedPreferenceChanged(NeuroSettingsFragment.java:64) at android.app.SharedPreferencesImpl$EditorImpl.notifyListeners(SharedPreferencesImpl.java:479) at android.app.SharedPreferencesImpl$EditorImpl.apply(SharedPreferencesImpl.java:387) at android.support.v7.preference.Preference.tryCommit(Preference.java:1613) at android.support.v7.preference.Preference.persistString(Preference.java:1644) at android.support.v7.preference.EditTextPreference.setText(EditTextPreference.java:69) at com.takisoft.fix.support.v7.preference.EditTextPreference.setText(EditTextPreference.java:37) at com.takisoft.fix.support.v7.preference.EditTextPreferenceDialogFragmentCompat.onDialogClosed(EditTextPreferenceDialogFragmentCompat.java:90) at android.support.v7.preference.PreferenceDialogFragmentCompat.onDismiss(PreferenceDialogFragmentCompat.java:270) at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1337) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:165) at android.app.ActivityThread.main(ActivityThread.java:6375) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)
Screenshots of the issue
System Information
Would you like to work on the issue?
Yes
The text was updated successfully, but these errors were encountered: