mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Unify attach icons.
This commit is contained in:
@@ -318,7 +318,7 @@ public class MusicBrowserService extends MediaBrowserService implements Notifica
|
||||
}
|
||||
}
|
||||
if (avatar == null || bitmap == null) {
|
||||
builder.setIconUri(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/drawable/audiosend_play"));
|
||||
builder.setIconUri(Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/drawable/attach_audio_inlist_play"));
|
||||
}
|
||||
mediaItems.add(new MediaBrowser.MediaItem(builder.build(), MediaBrowser.MediaItem.FLAG_BROWSABLE));
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ public class Theme {
|
||||
timeStickerBackgroundDrawable = context.getResources().getDrawable(R.drawable.phototime2);
|
||||
systemDrawable = context.getResources().getDrawable(R.drawable.system);
|
||||
|
||||
fileDrawable = context.getResources().getDrawable(R.drawable.file);
|
||||
fileDrawable = context.getResources().getDrawable(R.drawable.attach_file_inlist);
|
||||
|
||||
photoStatesDrawables[0][0] = context.getResources().getDrawable(R.drawable.photoload);
|
||||
photoStatesDrawables[0][1] = context.getResources().getDrawable(R.drawable.photoload_pressed);
|
||||
|
||||
@@ -81,12 +81,12 @@ public class AudioCell extends FrameLayout {
|
||||
if (audioEntry != null) {
|
||||
if (MediaController.getInstance().isPlayingAudio(audioEntry.messageObject) && !MediaController.getInstance().isAudioPaused()) {
|
||||
MediaController.getInstance().pauseAudio(audioEntry.messageObject);
|
||||
playButton.setImageResource(R.drawable.audiosend_play);
|
||||
playButton.setImageResource(R.drawable.attach_audio_inlist_play);
|
||||
} else {
|
||||
ArrayList<MessageObject> arrayList = new ArrayList<>();
|
||||
arrayList.add(audioEntry.messageObject);
|
||||
if (MediaController.getInstance().setPlaylist(arrayList, audioEntry.messageObject)) {
|
||||
playButton.setImageResource(R.drawable.audiosend_pause);
|
||||
playButton.setImageResource(R.drawable.attach_audio_inlist_pause);
|
||||
if (delegate != null) {
|
||||
delegate.startedPlayingAudio(audioEntry.messageObject);
|
||||
}
|
||||
@@ -154,7 +154,7 @@ public class AudioCell extends FrameLayout {
|
||||
genreTextView.setText(audioEntry.genre);
|
||||
authorTextView.setText(audioEntry.author);
|
||||
timeTextView.setText(String.format("%d:%02d", audioEntry.duration / 60, audioEntry.duration % 60));
|
||||
playButton.setImageResource(MediaController.getInstance().isPlayingAudio(audioEntry.messageObject) && !MediaController.getInstance().isAudioPaused() ? R.drawable.audiosend_pause : R.drawable.audiosend_play);
|
||||
playButton.setImageResource(MediaController.getInstance().isPlayingAudio(audioEntry.messageObject) && !MediaController.getInstance().isAudioPaused() ? R.drawable.attach_audio_inlist_pause : R.drawable.attach_audio_inlist_play);
|
||||
|
||||
needDivider = divider;
|
||||
setWillNotDraw(!divider);
|
||||
|
||||
@@ -111,7 +111,7 @@ public class SharedDocumentCell extends FrameLayout {
|
||||
dateTextView.setText(value);
|
||||
}
|
||||
if (resId == 0) {
|
||||
placeholderImageView.setImageResource(R.drawable.file);
|
||||
placeholderImageView.setImageResource(R.drawable.attach_file_inlist);
|
||||
placeholderImageView.setVisibility(VISIBLE);
|
||||
} else {
|
||||
placeholderImageView.setVisibility(INVISIBLE);
|
||||
|
||||
Reference in New Issue
Block a user