Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created Jan 1, 2016
Embed
What would you like to do?
private ErrorFragment buildErrorFragment() {
ErrorFragment errorFragment = new ErrorFragment();
errorFragment.setTitle(getString(R.string.text_error_oops_title));
errorFragment.setMessage(getString(R.string.error_message_wifi_needed_app));
errorFragment.setButtonText(getString(R.string.text_close));
errorFragment.setButtonClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
return errorFragment;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment