Use material icons in MPRIS activity
ClosedPublic

Authored by mtijink on Nov 22 2017, 5:39 PM.

Details

Summary

The previous icons were old (pre-Material, maybe even pre-Holo). The recommended practice now is to add the icons directly to your app, so I added the material icons. Note that the vector version is used; these are automatically converted to bitmaps for older android versions.

Diff Detail

Repository
R225 KDE Connect - Android application
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mtijink created this revision.Nov 22 2017, 5:39 PM
apol added a subscriber: apol.Nov 22 2017, 11:39 PM

+1 for these reviews it's usually better to send a picture to see what it looks like.

Good point. Before:


After:

mtijink updated this revision to Diff 23209.Dec 1 2017, 11:23 AM

Resolved conflicts because of D8942

Any further comments? If not, can somebody merge this?

This revision was automatically updated to reflect the committed changes.

Don't you need to add some additional gradle step for vector icons to be converted to bitmaps? Is that the default behaviour? I just want to be sure we won't break the app on old devices :)

It's the default behaviour (see https://developer.android.com/studio/write/vector-asset-studio.html).

To be sure, I checked the generated APK, and it does contain the raster images.

Thanks Matthijs!