Skip to content

Commit c877b11

Browse files
authored
Merge pull request #808 from YoKeyword/dev
v1.3.3
2 parents fda0959 + 9611a3a commit c877b11

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ The first demo shows the basic usage of the library. The second one shows the wa
4646
**1、build.gradle**
4747
````gradle
4848
// appcompat-v7 is required
49-
compile 'me.yokeyword:fragmentation:1.3.2'
49+
compile 'me.yokeyword:fragmentation:1.3.3'
5050
5151
// If you don't want to extends SupportActivity/Fragment and would like to customize your own support, just rely on fragmentation-core
52-
// compile 'me.yokeyword:fragmentation-core:1.3.2'
52+
// compile 'me.yokeyword:fragmentation-core:1.3.3'
5353
5454
// To get SwipeBack feature, rely on both fragmentation & fragmentation-swipeback
55-
compile 'me.yokeyword:fragmentation:1.3.2'
55+
compile 'me.yokeyword:fragmentation:1.3.3'
5656
// Swipeback is based on fragmentation. Refer to SwipeBackActivity/Fragment for your Customized SupportActivity/Fragment
57-
compile 'me.yokeyword:fragmentation-swipeback:1.3.2'
57+
compile 'me.yokeyword:fragmentation-swipeback:1.3.3'
5858
5959
// To simplify the communication between Fragments.
6060
compile 'me.yokeyword:eventbus-activity-scope:1.1.0'

README_CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ A powerful library that manage Fragment for Android!
5252
**1. 项目下app的build.gradle中依赖:**
5353
````gradle
5454
// appcompat-v7包是必须的
55-
compile 'me.yokeyword:fragmentation:1.3.2'
55+
compile 'me.yokeyword:fragmentation:1.3.3'
5656
5757
// 如果不想继承SupportActivity/Fragment,自己定制Support,可仅依赖:
58-
// compile 'me.yokeyword:fragmentation-core:1.3.2'
58+
// compile 'me.yokeyword:fragmentation-core:1.3.3'
5959
6060
// 如果想使用SwipeBack 滑动边缘退出Fragment/Activity功能,完整的添加规则如下:
61-
compile 'me.yokeyword:fragmentation:1.3.2'
61+
compile 'me.yokeyword:fragmentation:1.3.3'
6262
// swipeback基于fragmentation, 如果是自定制SupportActivity/Fragment,则参照SwipeBackActivity/Fragment实现即可
63-
compile 'me.yokeyword:fragmentation-swipeback:1.3.2'
63+
compile 'me.yokeyword:fragmentation-swipeback:1.3.3'
6464
6565
// Activity作用域的EventBus,更安全,可有效避免after onSavenInstanceState()异常
6666
compile 'me.yokeyword:eventbus-activity-scope:1.1.0'

fragmentation_core/src/main/java/me/yokeyword/fragmentation/SupportHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ static List<Fragment> getWillPopFragments(FragmentManager fm, String targetTag,
245245

246246
for (int i = size - 1; i >= startIndex; i--) {
247247
Fragment fragment = fragmentList.get(i);
248-
if (fragment != null) {
249-
willPopFragments.add(fragmentList.get(i));
248+
if (fragment != null && fragment.getView() != null) {
249+
willPopFragments.add(fragment);
250250
}
251251
}
252252
return willPopFragments;

fragmentation_swipeback/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Activity内Fragment数大于1时,滑动返回的是Fragment,否则滑动返
1010
1、项目下app的build.gradle中依赖:
1111
````gradle
1212
// appcompat v7包是必须的
13-
compile 'me.yokeyword:fragmentation:1.3.2'
14-
compile 'me.yokeyword:fragmentation-swipeback:1.3.2'
13+
compile 'me.yokeyword:fragmentation:1.3.3'
14+
compile 'me.yokeyword:fragmentation-swipeback:1.3.3'
1515
````
1616

1717
2、如果Activity也需要支持SwipeBack,则继承SwipeBackActivity:

0 commit comments

Comments
 (0)