Skip to content

LoginActivity crashes when login screen is opened in landscape mode #1864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ashishkumar468 opened this issue Aug 27, 2018 · 0 comments · Fixed by #1865
Closed

LoginActivity crashes when login screen is opened in landscape mode #1864

ashishkumar468 opened this issue Aug 27, 2018 · 0 comments · Fixed by #1865
Labels

Comments

@ashishkumar468
Copy link
Collaborator

Summary:

When we try to login in landscape mode, the login activity crashes

Steps to reproduce:
Change the orientation of the device and try to login.

How can we reproduce the issue?
Expected behaviour was flawless login irrespective of the device orientation

Add System logs:
java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.auth.LoginActivity}: java.lang.IllegalStateException: Required view 'skipLogin' with ID 2131689702 for field 'skipLoginText' was not found. If this view is optional add '@nullable' (fields) or '@optional' (methods) annotation.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4915)
at android.app.ActivityThread.-wrap21(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1637)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Caused by: java.lang.IllegalStateException: Required view 'skipLogin' with ID 2131689702 for field 'skipLoginText' was not found. If this view is optional add '@nullable' (fields) or '@optional' (methods) annotation.
at butterknife.internal.Utils.findRequiredView(Utils.java:92)
at butterknife.internal.Utils.findRequiredViewAsType(Utils.java:104)
at fr.free.nrw.commons.auth.LoginActivity_ViewBinding.(LoginActivity_ViewBinding.java:45)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at butterknife.ButterKnife.createBinding(ButterKnife.java:199)
at butterknife.ButterKnife.bind(ButterKnife.java:124)
at fr.free.nrw.commons.auth.LoginActivity.onCreate(LoginActivity.java:110)
at android.app.Activity.performCreate(Activity.java:6942)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)

Device and Android version:
Pixel C and Samsung s7 edge api 27

Commons app version:
2.8.1 prodDebug

Screen-shots:

NA

Would you like to work on the issue?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants