Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
*/
public class SetupSelectBackendFragment extends SetupFragment {

private View mView;

private final DialogFragment mDialogFragment = new DialogFragment() {
public static class LocalBackendWarningDialog extends DialogFragment {
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
Expand All @@ -51,7 +49,9 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {
builder.setCancelable(false);
return builder.create();
}
};
}

private View mView;

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Expand All @@ -69,7 +69,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mDialogFragment.show(getFragmentManager(), null);
new LocalBackendWarningDialog().show(getFragmentManager(), null);
}
});

Expand Down