Giter VIP home page Giter VIP logo

Comments (13)

broakenmedia avatar broakenmedia commented on September 2, 2024 1

I was thinking the same thing, however the action needs to be taken based on the option chosen in the first dialog i.e. "If YES" on dismiss try again, otherwise do nothing" I can probably do this with some awkward boolean switches though

from dialogplus.

pellyadolfo avatar pellyadolfo commented on September 2, 2024 1

ugly but works

from dialogplus.

orhanobut avatar orhanobut commented on September 2, 2024

thanks for the reporting this, let me check it.

from dialogplus.

broakenmedia avatar broakenmedia commented on September 2, 2024

Any news on this? :)

from dialogplus.

broakenmedia avatar broakenmedia commented on September 2, 2024
  /**
   * It adds the dialog view into rootView which is decorView of activity
  */
 public void show() {
   if (isShowing()) {
     return;
  }
    onAttached(rootView);
 }

 /**
  * It basically check if the rootView contains the dialog plus view.
  *
  * @return true if it contains
  */
  public boolean isShowing() {
     View view = decorView.findViewById(R.id.outmost_container);
    return view != null;
  }

Looks like it's finding the same outmost_container when trying to open a new dialog and returning

from dialogplus.

orhanobut avatar orhanobut commented on September 2, 2024

The problem lays in the animation duration actually, we need to differentiate for each instance. By the way, sorry I couldn't have enough time to check this issue

from dialogplus.

broakenmedia avatar broakenmedia commented on September 2, 2024

I'm assuming the isShowing will only return false once the dismiss animation as ended for the previous dialog?

from dialogplus.

broakenmedia avatar broakenmedia commented on September 2, 2024

No problem! I've gotta try and figure out a solution asap though!

from dialogplus.

orhanobut avatar orhanobut commented on September 2, 2024

A work around would be to use dismiss listener and show the second dialog

from dialogplus.

HectorFGarcia avatar HectorFGarcia commented on September 2, 2024

I have the same problem. As #1 is pointing out, It seems like the first dialog doesn't dismiss in time so the second one doesn't show up.

from dialogplus.

orhanobut avatar orhanobut commented on September 2, 2024

The issue can be solved by work around via using dismissListener for now.

from dialogplus.

orhanobut avatar orhanobut commented on September 2, 2024

Closing this issue due to long time period, can reopen if needed

from dialogplus.

aguswardianzah avatar aguswardianzah commented on September 2, 2024

AFAIK there's only one dialog can be shown at once, is it possible to put static function to check whether any dialog shown or not?

from dialogplus.

Related Issues (20)

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.