Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 670c612

Browse files
committed
Adds java doc.
1 parent e42c3f7 commit 670c612

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ Alex Li <[email protected]>
6666
Rahul Raj <[email protected]>
6767
Daniel Roek <[email protected]>
6868
TheOneWithTheBraid <[email protected]>
69+
Rulong Chen(陈汝龙) <[email protected]>

packages/image_picker/image_picker/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerPlugin.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ public void onActivityStopped(Activity activity) {
9090
}
9191
}
9292

93+
/**
94+
* Move all activity-lifetime-bound states into this helper object, so that {@code setup} and
95+
* {@code tearDown} would just become constructor and finalize calls of the helper object.
96+
*/
9397
private class ActivityState {
9498
private Application application;
9599
private Activity activity;
@@ -101,6 +105,7 @@ private class ActivityState {
101105
// This is null when not using v2 embedding;
102106
private Lifecycle lifecycle;
103107

108+
// Default constructor
104109
ActivityState(
105110
final Application application,
106111
final Activity activity,
@@ -130,6 +135,7 @@ private class ActivityState {
130135
}
131136
}
132137

138+
// Only invoked by {@link #ImagePickerPlugin(ImagePickerDelegate, Activity)} for testing.
133139
ActivityState(final ImagePickerDelegate delegate, final Activity activity) {
134140
this.activity = activity;
135141
this.delegate = delegate;

0 commit comments

Comments
 (0)