質問編集履歴

1

ご指摘頂いたConfirmDialogFragment#onCreateDialog\(Bundle\)の戻り値を修正しました。

2017/03/31 09:09

投稿

type23
type23

score18

test CHANGED
File without changes
test CHANGED
@@ -164,11 +164,9 @@
164
164
 
165
165
 
166
166
 
167
- AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
168
-
169
167
  final Activity activity = getActivity();
170
168
 
171
- new AlertDialog.Builder(activity)
169
+ AlertDialog.Builder builder = new AlertDialog.Builder(activity)
172
170
 
173
171
  .setTitle(title)
174
172
 
@@ -210,11 +208,7 @@
210
208
 
211
209
  );
212
210
 
213
-
214
-
215
-
216
-
217
- return super.onCreateDialog(savedInstanceState);
211
+ return builder.create();
218
212
 
219
213
  }
220
214