@@ -74,7 +74,7 @@ public static boolean hasCamera() {
7474 * @param response a callback Object to retrieve the file path
7575 * @throws RuntimeException if this feature failed or unsupported on the platform
7676 */
77- public static void capturePhoto (ActionListener response ) {
77+ public static void capturePhoto (ActionListener < ActionEvent > response ) {
7878 Display .getInstance ().capturePhoto (response );
7979 }
8080
@@ -193,7 +193,7 @@ public static String capturePhoto(int width, int height) {
193193 * @param response a callback Object to retrieve the file path
194194 * @throws RuntimeException if this feature failed or unsupported on the platform
195195 */
196- public static void captureAudio (ActionListener response ) {
196+ public static void captureAudio (ActionListener < ActionEvent > response ) {
197197 Display .getInstance ().captureAudio (response );
198198 }
199199
@@ -210,7 +210,7 @@ public static void captureAudio(ActionListener response) {
210210 * @throws RuntimeException if this feature failed or unsupported on the platform
211211 * @since 7.0
212212 */
213- public static void captureAudio (MediaRecorderBuilder recorderOptions , ActionListener response ) {
213+ public static void captureAudio (MediaRecorderBuilder recorderOptions , ActionListener < ActionEvent > response ) {
214214 Display .getInstance ().captureAudio (recorderOptions , response );
215215 }
216216
@@ -224,7 +224,7 @@ public static void captureAudio(MediaRecorderBuilder recorderOptions, ActionList
224224 * @param response a callback Object to retrieve the file path
225225 * @since 7.0
226226 */
227- public static void captureVideo (VideoCaptureConstraints constraints , ActionListener response ) {
227+ public static void captureVideo (VideoCaptureConstraints constraints , ActionListener < ActionEvent > response ) {
228228 Display .getInstance ().captureVideo (constraints , response );
229229 }
230230
@@ -241,11 +241,11 @@ public static void captureVideo(VideoCaptureConstraints constraints, ActionListe
241241 * @throws RuntimeException if this feature failed or unsupported on the platform
242242 * @see #captureVideo(com.codename1.capture.VideoCaptureConstraints, com.codename1.ui.events.ActionListener)
243243 */
244- public static void captureVideo (ActionListener response ) {
244+ public static void captureVideo (ActionListener < ActionEvent > response ) {
245245 Display .getInstance ().captureVideo (response );
246246 }
247247
248- static class CallBack implements ActionListener , Runnable {
248+ static class CallBack implements ActionListener < ActionEvent > , Runnable {
249249 String url ;
250250 private boolean completed ;
251251 private int targetWidth = -1 ;
@@ -259,7 +259,7 @@ public void actionPerformed(ActionEvent evt) {
259259 }
260260 completed = true ;
261261 synchronized (this ) {
262- this .notify ();
262+ this .notifyAll ();
263263 }
264264 }
265265
0 commit comments