@@ -86,18 +86,18 @@ public void onTranscodeProgress(double progress) {
86
86
@ Override
87
87
public void onTranscodeCompleted () {
88
88
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 );
90
90
startActivity (new Intent (Intent .ACTION_VIEW ).setDataAndType (Uri .fromFile (file ), "video/mp4" ));
91
91
}
92
92
93
93
@ Override
94
94
public void onTranscodeCanceled () {
95
- transcodefinish (progressBar , 0 , "Transcoder canceled." , parcelFileDescriptor );
95
+ transcodeFinishEvent (progressBar , 0 , "Transcoder canceled." , parcelFileDescriptor );
96
96
}
97
97
98
98
@ Override
99
99
public void onTranscodeFailed (Exception exception ) {
100
- transcodefinish (progressBar , 0 , "Transcoder error occurred." , parcelFileDescriptor );
100
+ transcodeFinishEvent (progressBar , 0 , "Transcoder error occurred." , parcelFileDescriptor );
101
101
}
102
102
};
103
103
Log .d (TAG , "transcoding into " + file );
@@ -131,7 +131,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
131
131
return super .onOptionsItemSelected (item );
132
132
}
133
133
134
- private void transcodefinish (ProgressBar progressBar , int progress , String toastMessage , ParcelFileDescriptor parcelFileDescriptor ) {
134
+ private void transcodeFinishEvent (ProgressBar progressBar , int progress , String toastMessage , ParcelFileDescriptor parcelFileDescriptor ) {
135
135
progressBar .setIndeterminate (false );
136
136
progressBar .setProgress (progress );
137
137
switchButtonEnabled (false );
0 commit comments