Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

所有图片选择/相册选择,这两个界面能不能合在一起? #41

Open
fengjuan opened this issue Nov 6, 2017 · 1 comment

Comments

@fengjuan
Copy link

fengjuan commented Nov 6, 2017

因为现在是跳到所有图片选择界面后,点返回键返回到相册选择界面,再点一次返回才能返回到应用。
或者跳转到相册选择界面就可以了,用户自己选着相册后再选择图片,相册界面点击返回直接返回应用,
不要点两次返回才返回应用

@TangXiaoLv
Copy link
Owner

TangXiaoLv commented Nov 14, 2017

@fengjuan 仿照GalleryActivity自定义Activity, 将以下代码 <=1 改为<= 2

@Override
    public boolean needCloseLastFragment(ActionBarLayout layout) {
        if (layout.fragmentsStack.size() <= 2) {
            finish();
            return false;
        }
        return true;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants