Merge "Shrink the music icon." into oc-dr1-dev am: e78190d124
am: a22ecac2f9
Change-Id: Ic5787c194d73c8de47f554f506c7601df00d55de
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user