@@ -86,18 +86,18 @@ public void onTranscodeProgress(double progress) {
8686 @ Override
8787 public void onTranscodeCompleted () {
8888 Log .d (TAG , "transcoding took " + (SystemClock .uptimeMillis () - startTime ) + "ms" );
89- transcodefinish (progressBar , PROGRESS_BAR_MAX , "transcoded file placed on " + file , parcelFileDescriptor );
89+ transcodeFinishEvent (progressBar , PROGRESS_BAR_MAX , "transcoded file placed on " + file , parcelFileDescriptor );
9090 startActivity (new Intent (Intent .ACTION_VIEW ).setDataAndType (Uri .fromFile (file ), "video/mp4" ));
9191 }
9292
9393 @ Override
9494 public void onTranscodeCanceled () {
95- transcodefinish (progressBar , 0 , "Transcoder canceled." , parcelFileDescriptor );
95+ transcodeFinishEvent (progressBar , 0 , "Transcoder canceled." , parcelFileDescriptor );
9696 }
9797
9898 @ Override
9999 public void onTranscodeFailed (Exception exception ) {
100- transcodefinish (progressBar , 0 , "Transcoder error occurred." , parcelFileDescriptor );
100+ transcodeFinishEvent (progressBar , 0 , "Transcoder error occurred." , parcelFileDescriptor );
101101 }
102102 };
103103 Log .d (TAG , "transcoding into " + file );
@@ -131,7 +131,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
131131 return super .onOptionsItemSelected (item );
132132 }
133133
134- private void transcodefinish (ProgressBar progressBar , int progress , String toastMessage , ParcelFileDescriptor parcelFileDescriptor ) {
134+ private void transcodeFinishEvent (ProgressBar progressBar , int progress , String toastMessage , ParcelFileDescriptor parcelFileDescriptor ) {
135135 progressBar .setIndeterminate (false );
136136 progressBar .setProgress (progress );
137137 switchButtonEnabled (false );
0 commit comments