1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-25 22:53:20 +00:00

Revert some more changes

This commit is contained in:
wb9688 2020-04-03 15:48:38 +02:00
parent fed9197d23
commit 15a53d299d
2 changed files with 5 additions and 6 deletions

View File

@ -46,8 +46,7 @@ public class ChannelInfoItemHolder extends ChannelMiniInfoItemHolder {
if (!(infoItem instanceof ChannelInfoItem)) {
return;
}
final ChannelInfoItem item;
item = (ChannelInfoItem) infoItem;
final ChannelInfoItem item = (ChannelInfoItem) infoItem;
itemChannelDescriptionView.setText(item.getDescription());
}

View File

@ -179,10 +179,6 @@ public abstract class BaseImportExportService extends Service {
notificationManager.notify(getNotificationId(), notificationBuilder.build());
}
/*//////////////////////////////////////////////////////////////////////////
// Toast
//////////////////////////////////////////////////////////////////////////*/
protected NotificationCompat.Builder createNotification() {
return new NotificationCompat.Builder(this, getString(R.string.notification_channel_id))
.setOngoing(true)
@ -192,6 +188,10 @@ public abstract class BaseImportExportService extends Service {
.setContentTitle(getString(getTitle()));
}
/*//////////////////////////////////////////////////////////////////////////
// Toast
//////////////////////////////////////////////////////////////////////////*/
protected void showToast(@StringRes final int message) {
showToast(getString(message));
}