Created
February 10, 2013 06:19
-
-
Save antew/4748606 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final String USERNAME = "Username"; | |
... | |
public static LogoutDialogFragment newInstance(String username) { | |
LogoutDialogFragment fragment = new LogoutDialogFragment(); | |
// Add the username to the bundle of arguments for the fragment | |
Bundle args = new Bundle(); | |
args.putString(USERNAME, username); | |
fragment.setArguments(args); | |
return fragment; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment