fix old phones main intent bug

This commit is contained in:
Alexey Kuznetsov 2018-10-25 14:29:27 +03:00
commit aaba5398e5

View file

@ -183,7 +183,7 @@ public class RecordingService extends Service {
builder.setViewVisibility(R.id.notification_record, View.VISIBLE);
builder.setViewVisibility(R.id.notification_pause, View.GONE);
PendingIntent main = PendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class), PendingIntent.FLAG_UPDATE_CURRENT);
builder.setContentIntent(main);
builder.setMainIntent(main);
} else {
builder = new RemoteNotificationCompat.Builder(this, R.layout.notifictaion);
if (recording)