Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Replace app icon #645

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed app/src/debug/res/drawable-xxxhdpi/icon.png
Binary file not shown.
Binary file added app/src/debug/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<application
android:name="fr.gaulupeau.apps.Poche.App"
android:allowBackup="true"
android:icon="@drawable/icon"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/LightTheme"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/fr/gaulupeau/apps/Poche/tts/TtsService.java
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ private void setMediaSessionMetaData() {
.putString(MediaMetadataCompat.METADATA_KEY_ALBUM, metaDataAlbum)
.putString(MediaMetadataCompat.METADATA_KEY_TITLE, metaDataTitle)
.putBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART,
BitmapFactory.decodeResource(getResources(), R.drawable.icon));
BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher));
if (textInterface != null) {
builder.putLong(MediaMetadataCompat.METADATA_KEY_DURATION, textInterface.getTotalDuration());
}
Expand Down Expand Up @@ -761,7 +761,7 @@ private Notification generateNotification() {
NotificationCompat.Builder builder = generateNotificationBuilderFrom(getApplicationContext(), mediaSession);
builder.setContentIntent(notificationPendingIntent);
builder.setWhen(0);
builder.setSmallIcon(R.drawable.icon);
builder.setSmallIcon(R.mipmap.ic_launcher);
if (state != State.ERROR) {
//builder.addAction( generateAction( android.R.drawable.ic_media_previous, "Previous", KeyEvent.KEYCODE_MEDIA_PREVIOUS ) );
builder.addAction(generateAction(android.R.drawable.ic_media_rew, "Rewind", KeyEvent.KEYCODE_MEDIA_REWIND));
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/icon_unread.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:src="@drawable/icon"
android:src="@mipmap/ic_launcher"
android:contentDescription="@string/app_name"
android:layout_gravity="center" />

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/icon_unread_info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
android:initialLayout="@layout/icon_unread"
android:minHeight="40dp"
android:minWidth="40dp"
android:previewImage="@drawable/icon"
android:previewImage="@mipmap/ic_launcher"
android:updatePeriodMillis="86400000"
android:widgetCategory="home_screen" />
Binary file removed app/src/release/res/drawable-hdpi/icon.png
Binary file not shown.
Binary file removed app/src/release/res/drawable-mdpi/icon.png
Binary file not shown.
Binary file removed app/src/release/res/drawable-xhdpi/icon.png
Binary file not shown.
Binary file removed app/src/release/res/drawable-xxhdpi/icon.png
Binary file not shown.
Binary file removed app/src/release/res/drawable-xxxhdpi/icon.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/release/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/release/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/release/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.