Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 209bea55 authored by Daniel Nishi's avatar Daniel Nishi
Browse files

Shrink the music icon.

The icons on the ManageApplications screen are 42dp by default. By
pushing a big inset, we can shrink it to be appropriate.

Change-Id: Iadf9f9f708c7469f42559f88626789127f865543
Fixes: 62548746
Test: Manual
parent c619ad77
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.settings.applications;
import android.app.Fragment;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.InsetDrawable;
import android.os.UserHandle;
import android.provider.DocumentsContract;
import android.support.annotation.WorkerThread;
@@ -38,6 +39,7 @@ public class MusicViewHolderController implements FileViewHolderController {
    private static final String TAG = "MusicViewHolderController";

    private static final String AUTHORITY_MEDIA = "com.android.providers.media.documents";
    private static final int INSET_SIZE = 24; // dp

    private Context mContext;
    private StorageStatsSource mSource;
@@ -71,7 +73,8 @@ public class MusicViewHolderController implements FileViewHolderController {

    @Override
    public void setupView(AppViewHolder holder) {
        holder.appIcon.setImageDrawable(mContext.getDrawable(R.drawable.ic_headset_24dp));
        holder.appIcon.setImageDrawable(
                new InsetDrawable(mContext.getDrawable(R.drawable.ic_headset_24dp), INSET_SIZE));
        holder.appName.setText(mContext.getText(R.string.audio_files_title));
        holder.summary.setText(Formatter.formatFileSize(mContext, mMusicSize));
    }