Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WPFragment {
- ...
- public static WPFragment newInstance() {
- return new WPFragment();
- }
- ...
- }
- class MainActivity {
- ...
- if (fragment == null) {
- fragment = WPFragment().newInstance();
- ...
- }
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement