Skip to content

memory leak #9

@xiangnan

Description

@xiangnan

第二种方式存在内存泄漏,这里

public class ActivityKeyBoardProxyBuild {
private Activity mActivity = null;
private ActivityKeyBoardProxyBuild() {
}

private static class Holder {
    private static final ActivityKeyBoardProxyBuild INSTANCE = new ActivityKeyBoardProxyBuild();
}

public static ActivityKeyBoardProxyBuild getInstance() {
    return Holder.INSTANCE;
}

public ActivityKeyBoardProxyBuild withActivity(@NonNull Activity activity) {
    this.mActivity = activity;
    return this;
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions