[packages/apps/SoundRecorder] solve play recording bug
This commit is contained in:
@ -666,7 +666,9 @@ public class SoundRecorder extends Activity
|
||||
return (TelecomManager) getSystemService(Context.TELECOM_SERVICE);
|
||||
}
|
||||
private void record(){
|
||||
mRecorder.delete();
|
||||
if (!(mDoWhat!=null&&mDoWhat.equals(PLAY))){
|
||||
mRecorder.delete();
|
||||
}
|
||||
mDoWhat=null;
|
||||
mRecorder.mSampleFile=null;
|
||||
TelecomManager telecomManager = getTelecommService();
|
||||
@ -1288,6 +1290,9 @@ public class SoundRecorder extends Activity
|
||||
|
||||
if (!(mDoWhat!=null&&mDoWhat.equals(PLAY))){
|
||||
mExitButtons.setVisibility(View.VISIBLE);
|
||||
}
|
||||
else{
|
||||
mExitButtons.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
mVUMeter.setVisibility(View.INVISIBLE);
|
||||
|
||||
@ -1349,6 +1354,9 @@ public class SoundRecorder extends Activity
|
||||
|
||||
if (!(mDoWhat!=null&&mDoWhat.equals(PLAY))){
|
||||
mExitButtons.setVisibility(View.VISIBLE);
|
||||
}
|
||||
else{
|
||||
mExitButtons.setVisibility(View.INVISIBLE);
|
||||
}
|
||||
mVUMeter.setVisibility(View.INVISIBLE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user