Skip to content

Commit

Permalink
remove singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
litao0621 committed Jan 15, 2018
1 parent 075fa79 commit d0f0b31
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,7 @@ protected void onCreate(Bundle savedInstanceState) {

public static NiftyDialogBuilder getInstance(Context context) {

if (instance == null || !tmpContext.equals(context)) {
synchronized (NiftyDialogBuilder.class) {
if (instance == null || !tmpContext.equals(context)) {
instance = new NiftyDialogBuilder(context, R.style.dialog_untran);
}
}
}
tmpContext = context;
return instance;
return new NiftyDialogBuilder(context, R.style.dialog_untran);

}

Expand Down

0 comments on commit d0f0b31

Please sign in to comment.