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

Commit 959f0d59 authored by Daniel Nishi's avatar Daniel Nishi Committed by android-build-merger
Browse files

Merge "Shrink the music icon." into oc-dr1-dev am: e78190d1

am: a22ecac2

Change-Id: Ic5787c194d73c8de47f554f506c7601df00d55de
parents b41f08ce a22ecac2
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));
    }