Skip to content

Commit 8e90a62

Browse files
authored
code review
1 parent 1576969 commit 8e90a62

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

app/src/main/java/com/hzitoun/camera2SecretPictureTaker/services/PictureCapturingServiceImpl.java

+9-7
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ public class PictureCapturingServiceImpl extends APictureCapturingService {
6767
private PictureCapturingServiceImpl(final Activity activity) {
6868
super(activity);
6969
}
70+
71+
/**
72+
* @param activity the activity used to get the app's context and the display manager
73+
* @return a new instance
74+
*/
75+
public static APictureCapturingService getInstance(final Activity activity) {
76+
return new PictureCapturingServiceImpl(activity);
77+
}
7078

7179
/**
7280
* starts pictures capturing process.
@@ -247,11 +255,5 @@ private void closeCamera() {
247255
}
248256

249257

250-
/**
251-
* @param activity the activity used to get the app's context and display manager
252-
* @return new instance
253-
*/
254-
public static APictureCapturingService getInstance(final Activity activity) {
255-
return new PictureCapturingServiceImpl(activity);
256-
}
258+
257259
}

0 commit comments

Comments
 (0)