-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enhacement - Add Custom Image Selector FAB Option to Nearby #5655
Enhacement - Add Custom Image Selector FAB Option to Nearby #5655
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get this crash with this branch, even after deleting the app's data:
APP_VERSION_NAME=4.2.1-debug-shashankiitbhu-custom_picker_5095
ANDROID_VERSION=14
PHONE_MODEL=Pixel 7 Pro
STACK_TRACE=java.lang.NullPointerException: Attempt to read from field 'android.widget.RelativeLayout fr.free.nrw.commons.databinding.FragmentNearbyParentBinding.rlContainerWlmMonthMessage' on a null object reference in method 'void fr.free.nrw.commons.nearby.fragments.NearbyParentFragment.onViewCreated(android.view.View, android.os.Bundle)'
at fr.free.nrw.commons.nearby.fragments.NearbyParentFragment.onViewCreated(NearbyParentFragment.java:330)
at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:2987)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:546)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3138)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3072)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:502)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:201)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1645)
at android.app.Activity.performStart(Activity.java:8800)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3971)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:299)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:279)
at android.app.servertransaction.TransactionExecutor.executeLifecycleItem(TransactionExecutor.java:251)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:228)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:91)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2544)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8501)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
I am not getting this crash on branch main.
looking into this issue now |
@nicolas-raoul Fixed the crash, Please Review, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working fine, uploaded this pic via Nearby using this branch:
https://commons.wikimedia.org/wiki/File:JR_East_Ebisu_Station.jpg
Description (required)
Fixes #4611
What changes did you make and why?
Added Custom Image Selector FAB Button and also Migrated NearbyParentFragment (In which I made these changes) to viewBinding
Tests performed (required)
Tested {build variant, e.g. ProdDebug} on {name of device or emulator} with API level {API level}.
Screenshots (for UI changes only)