mApplication = application;
mResolver = application.getContentResolver();
mBucketId = bucketId;
- mName = getLocalizedName(application.getResources(), bucketId, name);
+ mName = name;
mIsImage = isImage;
if (isImage) {
@Override
public String getName() {
- return mName;
+ return getLocalizedName(mApplication.getResources(), mBucketId, mName);
}
@Override
private final Comparator<MediaItem> mComparator;
private final MediaSet[] mSources;
- private String mName;
private FetchCache[] mFetcher;
private int mSupportedOperation;
private int mBucketId;
super(path, INVALID_DATA_VERSION);
mComparator = comparator;
mSources = sources;
- mName = sources.length == 0 ? "" : sources[0].getName();
mBucketId = bucketId;
for (MediaSet set : mSources) {
set.addContentListener(this);
mSupportedOperation = supported;
mIndex.clear();
mIndex.put(0, new int[mSources.length]);
- mName = mSources.length == 0 ? "" : mSources[0].getName();
}
private void invalidateCache() {
@Override
public String getName() {
- return mName;
+ return mSources.length == 0 ? "" : mSources[0].getName();
}
@Override