No Pop Up is displayed when Calling Games.Achievements.unlock

There has been some changes in recent update to play services framework. Use this instead so that you can see greeting popup and unlock popups as well.

GamesClient gamesClient = Games.getGamesClient(this, GoogleSignIn.getLastSignedInAccount(this));
gamesClient.setViewForPopups(findViewById(android.R.id.content));
gamesClient.setGravityForPopups(Gravity.TOP | Gravity.CENTER_HORIZONTAL);

Don't forget to import as required like-

import android.view.Gravity;
import com.google.android.gms.games.GamesClient;

I have found a solution, by using the following code

Games.setViewForPopups(getApiClient(), getWindow().getDecorView().findViewById(android.R.id.content));

I can get popups to show. I now have a related issue. The popup doesn't display for very long.

I think this is due to the fact I have a custom animation into this activity.

Is there any way to increase how long a popup is visible?