Merge branch 'audiorecorder-3.0.15'

This commit is contained in:
Alexey Kuznetsov 2017-07-05 21:25:08 +03:00
commit c86fa080cf
3 changed files with 6 additions and 4 deletions

View file

@ -8,8 +8,8 @@ android {
applicationId "com.github.axet.audiorecorder"
minSdkVersion 9
targetSdkVersion 23
versionCode 179
versionName "3.0.14"
versionCode 180
versionName "3.0.15"
}
signingConfigs {
release {

View file

@ -242,7 +242,7 @@ public class MainActivity extends AppCompatActivity {
final SharedPreferences shared = PreferenceManager.getDefaultSharedPreferences(this);
for (int i = 0; i < recordings.getCount(); i++) {
Uri f = recordings.getItem(i);
if (storage.getDocumentName(f).equals(last)) {
if (Storage.getDocumentName(f).equals(last)) {
SharedPreferences.Editor edit = shared.edit();
edit.putString(MainApplication.PREFERENCE_LAST, "");
edit.commit();
@ -268,6 +268,7 @@ public class MainActivity extends AppCompatActivity {
} else {
Toast.makeText(this, R.string.not_permitted, Toast.LENGTH_SHORT).show();
}
break;
}
}

View file

@ -202,7 +202,8 @@ public class RecordingService extends Service {
view.setTextViewText(R.id.notification_text, text);
view.setOnClickPendingIntent(R.id.notification_pause, pe);
view.setImageViewResource(R.id.notification_pause, !recording ? R.drawable.ic_play_arrow_black_24dp : R.drawable.ic_pause_black_24dp);
view.setContentDescription(R.id.notification_pause, getString(!recording ? R.string.record_button : R.string.pause_button));
if (Build.VERSION.SDK_INT >= 15)
view.setContentDescription(R.id.notification_pause, getString(!recording ? R.string.record_button : R.string.pause_button));
NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
.setOngoing(true)