Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

While ParseLoginUI loading spinner is working activity is visible at background

For my project, I am using ParseLoginUI with a dispatcher as shown here: https://github.com/ParsePlatform/ParseUI-Android/tree/master/ParseLoginSampleWithDispatchActivity

However, when I click "Login with Facebook", Parse spinner starts spinning, also my activity which I should go "after" this step is also getting visible (it looks really ugly) and then it directs me to facebook login widget and to the activity.

It should look like this: enter image description here

Yet, I also see this step:

enter image description here

Which is pretty disgusting. How can I stick with only first animation? I guess Activity is starting prematurely.

like image 366
Murat Ayan Avatar asked Feb 11 '23 17:02

Murat Ayan


1 Answers

I found the solution. That dummy activity which starts unnecessarily is belong to Facebook. Which in our AndroidManifest.xml Facebook's LoginActivity looks like this:

<activity android:name="com.facebook.LoginActivity">

Add NoDisplay as Theme to it, so it doesn't show up on screen:

<activity android:name="com.facebook.LoginActivity"
          android:theme="@android:style/Theme.NoDisplay">
like image 157
Murat Ayan Avatar answered Feb 15 '23 11:02

Murat Ayan