回答編集履歴
1
追加
test
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
> private FragmentManager manager = getFragmentManager();
|
2
|
+
|
1
3
|
> private FragmentTransaction transaction = manager.beginTransaction();
|
2
4
|
|
3
5
|
|
4
6
|
|
5
|
-
こ
|
7
|
+
この辺りは問題ありそうに思います.
|
6
8
|
|
7
9
|
これを消して
|
8
10
|
|
@@ -10,7 +12,7 @@
|
|
10
12
|
|
11
13
|
FragmentB fragment = FragmentB.newInstance();
|
12
14
|
|
13
|
-
FragmentTransaction transaction = manager.beginTransaction(); //追加
|
15
|
+
FragmentTransaction transaction = getFragmentManager().beginTransaction(); //追加
|
14
16
|
|
15
17
|
transaction.addToBackStack("");
|
16
18
|
|