Giter Site home page Giter Site logo

sq's People

Contributors

prototypez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sq's Issues

当前一个Activity被回收...

你好,demo里发起的Activity被回收后,在返回到发起的Activity时,该Activity是重建后的Activity,它是怎么能继续处理返回的结果的?一直不明白为什么。我自己却不行,我用的是java,难道是Kotlin的黑科技吗? demo能出个java版本的吗? 这个问题一直困扰我...好难受

收到多次回调

public static Observable<ActivityResult> startRx(final Fragment fragment, final int requestCode, int maxCount, String target) {
    Intent intent = new Intent(fragment.getContext(), TakePhotoWithCropActivity.class);
    intent.putExtra(Constants.MAX_SELECT_COUNT, maxCount);
    intent.putExtra(Constants.TARGET, target); //目标路径
    Sq.startActivityForResult(fragment, intent, requestCode);
    return Sq.obtainActivityResult(fragment).filter(new Predicate<ActivityResult>() {
        @Override
        public boolean test(ActivityResult activityResult) throws Exception {
            return activityResult.getRequestCode() == requestCode && activityResult.getResultCode() == RESULT_OK;
        }
    });
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.