google / google-authenticator-android

Open source fork of the Google Authenticator Android app
https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2
Apache License 2.0
1.58k stars 470 forks source link

App crash When back to main screen after Change System Time and Synch #75

Closed 159159951 closed 4 years ago

159159951 commented 6 years ago

Here is logcat:

FATAL EXCEPTION: main Process: com.google.android.apps.authenticator2.os, PID: 24056 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.apps.authenticator2.os/com.google.android.apps.authenticator.timesync.SettingsTimeCorrectionActivity}: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756) Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:225) at android.preference.Preference.getPersistedString(Preference.java:1472) at android.preference.EditTextPreference.onSetInitialValue(EditTextPreference.java:160) at android.preference.Preference.dispatchSetInitialValue(Preference.java:1388) at android.preference.Preference.onAttachedToHierarchy(Preference.java:1182) at android.preference.PreferenceGroup.addPreference(PreferenceGroup.java:163) at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:105) at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:104) at android.preference.GenericInflater.rInflate(GenericInflater.java:490) at android.preference.GenericInflater.inflate(GenericInflater.java:327) at android.preference.GenericInflater.inflate(GenericInflater.java:264) at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:280) at android.preference.PreferenceActivity.addPreferencesFromResource(PreferenceActivity.java:1521) at com.google.android.apps.authenticator.timesync.SettingsTimeCorrectionActivity.onCreate(SettingsTimeCorrectionActivity.java:35) at android.app.Activity.performCreate(Activity.java:6662) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6077)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756) 

LIFEIMPACT commented 6 years ago

How can I Adjust Authenticator internal clock ?, Because it appears already be in sync with Google servers.

ThomasHabets commented 6 years ago

@LIFEIMPACT then it doesn't need adjusting, does it?

LIFEIMPACT commented 6 years ago

How can you help me to rectify it pls, my data is crucial.

On Aug 6, 2018 12:13, "Thomas Habets" notifications@github.com wrote:

@LIFEIMPACT https://github.com/LIFEIMPACT then it doesn't need adjusting, does it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/google/google-authenticator-android/issues/75#issuecomment-410674138, or mute the thread https://github.com/notifications/unsubscribe-auth/Acjy6z66P76rRKG6CTxL1AgycVbUsqxgks5uOCTKgaJpZM4R6t1G .

ThomasHabets commented 6 years ago

@LIFEIMPACT you have not described your problem at all.

But also, let me guess: Bitcoin?

ThomasHabets commented 4 years ago

No response