GithubHelp home page GithubHelp logo

Comments (3)

stevdza-san avatar stevdza-san commented on July 19, 2024

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.

Push1413 avatar Push1413 commented on July 19, 2024

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.

stevdza-san avatar stevdza-san commented on July 19, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.