Comments (3)
Steps to replicate crash
1. Mark 8 to 10 recipes to favorite.(enough to scroll) 2. By long clicking select favorite recipes such that it must contain one recipe from scroll(or simply select first and last one) 3. click delete icon from menu
Error report
* java.lang.IllegalArgumentException: No suitable parent found from the given view. Please provide a valid view. at com.google.android.material.snackbar.Snackbar.makeInternal(Snackbar.java:198) at com.google.android.material.snackbar.Snackbar.make(Snackbar.java:157) at com.example.foody.adapters.FavoriteRecipesAdapter.showSnackBar(FavoriteRecipesAdapter.kt:184) at com.example.foody.adapters.FavoriteRecipesAdapter.onActionItemClicked(FavoriteRecipesAdapter.kt:160)
I'm not sure I follow.
You get this error when selecting 8-10 recipes from Favorites and clicking delete button, right?
from foody.
No
You can select 2. Ex- select one at top and for second select any one after you scroll down some screen.
Then come back to top screen by scrolling and then click delete.
For my mobile screen size i stared 5 recipes and by long clicking selected 1st and last recipe. Then came back by scrolling up and after clicking delete from menu it gets crash.
from foody.
No
You can select 2. Ex- select one at top and for second select any one after you scroll down some screen.
Then come back to top screen by scrolling and then click delete.For my mobile screen size i stared 5 recipes and by long clicking selected 1st and last recipe. Then came back by scrolling up and after clicking delete from menu it gets crash.
I have replicated the steps you've described and everything works fine on my end.
I had that issue, but resolved it few weeks back. I suggest you to use the latest branch which is constantly updating.
from foody.
Related Issues (5)
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 foody.