Comments (7)
This won't be complex task and it won't be large refactoring. It would just require to pass bundle to the bottomsheet.
I understand that it won't be a difficult task but my point is it's rather unnecessary and adding flags like this before opening the bottom sheet is not really a recommended method.
As I mentioned in a previous comment that you should check out some standard Android apps (built by Google itself following the Best Practices) , there too you can reproduce this issue mentioned. (Google tasks for example)
My suggestion wasn't related to the complexity of tasks but rather maintaining the best practices and code quality.
If we were to act on every possibility like this (let's take slow response time on older devices for example) that would require is to handle 100s of unnecessary cases , you can reproduce this kind of discrepancies on older devices for almost every app available on Play Store.
from apps-android-commons.
@neeldoshii
Isn't this rare to occur practically, I cannot reproduce this on one of my Physical Devices. (You have to click really fast on a very responsive device I suppose) , also the solution you suggest isn't common (or mostly required for creating bottom sheets) - this would add another layer of complexity to it. what do you think? also, I would suggest trying to test this behavior (bottom sheet) on other standard Android apps (Like Google Tasks for example) because this behavior can also be observed there (and many other apps as according to standard documentation you don't need to handle the case that you mentioned)
from apps-android-commons.
We can't reproduce this issue as I suspect it happens only on your device because of a recent change you made on a bottom sheet by this PR #5578
Please resolve this behavior in that PR :)
There is no need to create another issue for that.
from apps-android-commons.
We can't reproduce this issue as I suspect it happens only on your device because of a recent change you made on a bottom sheet by this PR #5578
Please resolve this behavior in that PR :)
There is no need to create another issue for that.
On, the contrary I was able to reproduce this behaviour on the main branch, though it was very difficult to reproduce and occurred once in 5 tries :(
from apps-android-commons.
Isn't this rare to occur practically, I cannot reproduce this on one of my Physical Devices. (You have to click really fast on a very responsive device I suppose)
@shashankiitbhu
No, this is common to occur on older device where the memory of the device is very low. When you click on the button and it didn't loaded the bottom-sheet faster than usual the user tends to perform multiple tap on it which leads to creating multiple instance. Considering your point if you consider newer device its rare to occur but thinking from x% of users who are still using >Android 10 version device with less than 2-3GB ram device. Its worth considering wide range of users.
This would add another layer of complexity to it. what do you think?
This won't be complex task and it won't be large refactoring. It would just require to pass bundle to the bottomsheet. if the bottomsheet claas bundle is null --> create instance else --> its instance is already created and won't create multiple sheet.
The refactor would be less than 30 lines of code.
I would still like to have feedback from other reviewers.
Thanks
from apps-android-commons.
We can't reproduce this issue as I suspect it happens only on your device because of a recent change you made on a bottom sheet by this PR #5578
Please resolve this behavior in that PR :)
There is no need to create another issue for that.
@rohit9625
Thanks for your reply. The issue was tested on the main branch.
Coming toward PR #5578, this PR only contains refactors (adding one of the textview, add onClickFunction to open it in the browser) thats it no creation of bottom sheet is touched here. Also this PR is not yet merged into main branch. This issue solely relies towards the bottomsheet instance creation.
Correct me if I am wrong.
I have tested the issue on my 2-3 older testing device and did stress testing towards it. In order to reproduce, you need to perform multiple taps (double, thriple tap on the more button). The bottomsheet is created when the button is clicked so if the button is tapped twice thrice so its creates instance on the number of click done.
I hope I cleared your point. Thanks
On, the contrary I was able to reproduce this behaviour on the main branch, though it was very difficult to reproduce and occurred once in 5 tries :(
Yes, This is highly debatable topic I would say lets work on this issue based on the conclusion based on the discussion, complexity and time. This issue won't have high impact though but will work towards the increasing small performance.
from apps-android-commons.
@neeldoshii
Apologies for the confusion! I misunderstood the problem; I initially thought it might be related to activity creation, possibly caused by certain conditional statements.
However, I haven't pulled from the main branch in a while, so I can't reproduce the issue on my device. Thus, I suspected it might be related to a recent pull request.
from apps-android-commons.
Related Issues (20)
- [Bug]: Commons app does not keep in internal log crash-related messages
- Add DEBUG log for each URL that Commons app attempts to fetch
- Give user feedback when API-related error occurs
- [Bug]: Unable to change Caption/Description language multiple times HOT 1
- [Bug]: Don't show nominate for deletion / edit category and edit depicts for logged out users HOT 2
- [Bug]: Editing depicts clears every other structured data associated with the image HOT 14
- [Bug]: Voice input text vanishes in alternate inputs HOT 1
- [Bug]: Durchsuchen mit "in der NΓ€he" zeigt unterschiedliche Ergebnisse - "Durchsuchen" erscheint nicht, obwohl zuvor Bilder gesucht wurden HOT 1
- [Bug]: Allow multiple pictures to be selected by System Picker through Nearby HOT 5
- Temporarily stop updating the position HOT 2
- Hello, i had this error when i tried to run my application on my android emulator HOT 2
- [Bug]: No feedback possible HOT 12
- Show where the user's images are being in Wikipedia
- [Bug]: Colors of existing / not existing pins are very similar HOT 3
- Reduce delay between peer reviews HOT 12
- Create LinkedIn page for Commons app HOT 4
- Have a note in the feedback pop-up about where the feedback lands
- [Bug]: categories sometimes missing in search (while visible in manual API calls!) HOT 8
- Warn user when they select "bad" category HOT 1
- [Bug]: Provide the ability to view leaderboard of another user when logged out
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apps-android-commons.