Skip to content

Commit

Permalink
Some cleanup and preparation for #1292
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Ricci <[email protected]>
  • Loading branch information
daniele-athome committed Mar 29, 2020
1 parent aca572e commit e68b8b1
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions app/src/main/java/org/kontalk/ui/AudioDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.media.MediaRecorder;
import android.os.Bundle;
import androidx.core.content.ContextCompat;
import androidx.appcompat.app.AlertDialog;
Expand Down Expand Up @@ -83,26 +82,28 @@ public class AudioDialog extends AlertDialog {
.formatElapsedTime(MAX_AUDIO_DURATION / 1000);

private CircularSeekBar mProgressBar;
/** @deprecated Can't rely on animations for this. This must go away. */
@Deprecated
ObjectAnimator mProgressBarAnimator;
ImageView mImageButton;
TextView mTimeTxt;
private ImageView mImageButton;
private TextView mTimeTxt;
private TextView mHintTxt;

/** Flag indicating that we are stopping due to activity lifecycle. */
private boolean mSaved;

File mFile;
private File mFile;

/** The current status. */
int mStatus;
private int mStatus;

/** Holds the status while dragging the circular progress bar. */
int mCheckSeek;
private int mCheckSeek;

float mTimeCircle;
int mPlayerSeekTo;
AudioDialogListener mListener;
AudioFragment mData;
private float mTimeCircle;
private int mPlayerSeekTo;
private AudioDialogListener mListener;
private AudioFragment mData;

public AudioDialog(Context context, AudioFragment data, AudioDialogListener result) {
super(context);
Expand Down Expand Up @@ -478,6 +479,8 @@ void resumeAudio() {
mStatus = STATUS_PLAYING;
}

/** @deprecated Can't rely on animations for this. This must go away. */
@Deprecated
private void animate(final CircularSeekBar progressBar, final AnimatorListener listener,
final float progress, final float maxProgress, final long duration) {
mProgressBarAnimator = ObjectAnimator.ofFloat(progressBar, "progress", maxProgress);
Expand Down

0 comments on commit e68b8b1

Please sign in to comment.