Skip to content

Commit 5e3caf6

Browse files
author
ge78fug
committed
Chenged the What's New icon
1 parent 262b3a2 commit 5e3caf6

5 files changed

Lines changed: 16 additions & 5 deletions

File tree

app/src/main/java/org/schabi/newpipe/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ private void addDrawerMenuForCurrentService() throws ExtractionException {
235235
.setIcon(R.drawable.ic_tv);
236236
drawerLayoutBinding.navigation.getMenu()
237237
.add(R.id.menu_tabs_group, ITEM_ID_FEED, ORDER, R.string.fragment_feed_title)
238-
.setIcon(R.drawable.ic_rss_feed);
238+
.setIcon(R.drawable.ic_whats_new);
239239
drawerLayoutBinding.navigation.getMenu()
240240
.add(R.id.menu_tabs_group, ITEM_ID_BOOKMARKS, ORDER, R.string.tab_bookmarks)
241241
.setIcon(R.drawable.ic_bookmark);

app/src/main/java/org/schabi/newpipe/local/subscription/FeedGroupIcon.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ enum class FeedGroupIcon(
5151
WORLD(34, R.drawable.ic_public),
5252
STAR(35, R.drawable.ic_stars),
5353
SUN(36, R.drawable.ic_wb_sunny),
54-
RSS(37, R.drawable.ic_rss_feed);
54+
RSS(37, R.drawable.ic_rss_feed),
55+
WHATS_NEW(38, R.drawable.ic_whats_new);
5556

5657
@DrawableRes
5758
fun getDrawableRes(): Int {

app/src/main/java/org/schabi/newpipe/local/subscription/SubscriptionFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,10 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() {
433433
clear()
434434
if (listViewMode) {
435435
add(FeedGroupAddNewItem())
436-
add(FeedGroupCardItem(GROUP_ALL_ID, getString(R.string.all), FeedGroupIcon.RSS))
436+
add(FeedGroupCardItem(GROUP_ALL_ID, getString(R.string.all), FeedGroupIcon.WHATS_NEW))
437437
} else {
438438
add(FeedGroupAddNewGridItem())
439-
add(FeedGroupCardGridItem(GROUP_ALL_ID, getString(R.string.all), FeedGroupIcon.RSS))
439+
add(FeedGroupCardGridItem(GROUP_ALL_ID, getString(R.string.all), FeedGroupIcon.WHATS_NEW))
440440
}
441441
addAll(groups)
442442
}

app/src/main/java/org/schabi/newpipe/settings/tabs/Tab.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public String getTabName(final Context context) {
248248
@DrawableRes
249249
@Override
250250
public int getTabIconRes(final Context context) {
251-
return R.drawable.ic_rss_feed;
251+
return R.drawable.ic_whats_new;
252252
}
253253

254254
@Override
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:height="24dp"
3+
android:tint="@color/defaultIconTint"
4+
android:viewportHeight="24"
5+
android:viewportWidth="24"
6+
android:width="24dp" >
7+
<path
8+
android:fillColor="@android:color/white"
9+
android:pathData="M20,8L4,8L4,6h16v2zM18,2L6,2v2h12L18,2zM22,12v8c0,1.1 -0.9,2 -2,2L4,22c-1.1,0 -2,-0.9 -2,-2v-8c0,-1.1 0.9,-2 2,-2h16c1.1,0 2,0.9 2,2zM16,16l-6,-3.27v6.53L16,16z"/>
10+
</vector>

0 commit comments

Comments
 (0)