-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
第二种方式存在内存泄漏,这里
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
Labels
No labels