Tags » Gists

Utils: Dialog Helper

Gist source on github

Class that helps to show/dismiss DialogFraments allowing state loss

public class DialogHelper {

    public static void showAllowStateLoss(FragmentActivity activity, DialogFragment dialog) {
        if (!activity.isFinishing()) {
            FragmentTransaction ft = activity.getSupportFragmentManager().beginTransaction();
            ft.add(dialog, dialog.getTag());
            ft.commitAllowingStateLoss();
        }
    }


    public static void dismissAllowStateLoss(FragmentActivity activity, DialogFragment dialog) {
        if (!activity.isFinishing()) {
            dialog.dismissAllowingStateLoss();
        }
    }
}
Android

PHOTO:Check Out Don Jazzy & D’Prince Years ago Before the Fame

Don Jazzy & D’Prince years ago before the fame and when pepper(money) never too dey…LOL

Gists

Manchester United Sack manager David Moyes

Manchester United manager David Moyes has been sacked, only 10 months after succeeding Sir Alex Ferguson at Old Trafford.

The club had previously refused to comment on national newspaper reports on Monday that Moyes would be dismissed before the end of the season. 330 more words

Gists

OBO Davido Shares Picture of New Ride

Davido the Aye crooner shared the above picture and captioned it “Ready for Delivery!! Baddest can’t wait till u here baby !!! 2014 S63AMG!! “

Congratulations!!!

Gists

PHOTO:Maheeda Turns a Good Girl

You just have to agree she looks beautiful and elegant.Recently, she’s been covering up…But you know just like Rihanna, she knows how to take on different personalities but hope Maheeda stick to this.. 10 more words

Gists

Top 20 Most Influential Celebrities In Nigeria

They are popular, they are influential and some are powerful by the virtue of the political positions they occupy.
They are able to use their fame or positions to influence one or two things. 701 more words

Gists