Created
December 7, 2015 08:25
-
-
Save mr5z/beeaf38adfd2e7e87e67 to your computer and use it in GitHub Desktop.
preferencefragment is shit
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 void showSettings() { | |
getFragmentManager() | |
.beginTransaction() | |
.replace(android.R.id.content, new Settings()) | |
.addToBackStack("settings") | |
.commit(); | |
mSettingsShown = true; | |
} | |
private void hideSettings() { | |
getFragmentManager() | |
.beginTransaction() | |
.detach(new Settings()) | |
.commit(); | |
mSettingsShown = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment