set last rec
This commit is contained in:
parent
97b2502b82
commit
13aff321c3
2 changed files with 7 additions and 2 deletions
|
|
@ -55,5 +55,5 @@ android {
|
|||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
testCompile 'junit:junit:4.12'
|
||||
compile 'com.github.axet:android-audio-library:1.0.75' // compile project(':android-audio-library')
|
||||
compile 'com.github.axet:android-audio-library:1.0.76' // compile project(':android-audio-library')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -881,7 +881,12 @@ public class RecordingActivity extends AppCompatActivity {
|
|||
final File in = storage.getTempRecording();
|
||||
|
||||
if (!in.exists() || in.length() == 0) {
|
||||
finish();
|
||||
final SharedPreferences shared = PreferenceManager.getDefaultSharedPreferences(RecordingActivity.this);
|
||||
SharedPreferences.Editor edit = shared.edit();
|
||||
edit.putString(MainApplication.PREFERENCE_LAST, Storage.getDocumentName(targetUri));
|
||||
edit.commit();
|
||||
|
||||
done.run();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue