Skip to content

Commit cf4c0c3

Browse files
MahdiMahdi
authored andcommitted
Add Camera
1 parent e4be1df commit cf4c0c3

21 files changed

Lines changed: 27 additions & 27 deletions

FilePicker/src/main/java/com/mahdiasd/filepicker/FilePicker.kt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ data class FilePicker(
2424
var maxTotalFileSizeText: String = context.getString(R.string.mahdiasd_file_picker_max_total_size),
2525
var maxEachFileSizeText: String = context.getString(R.string.mahdiasd_file_picker_max_each_size),
2626

27-
var videoIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_video),
28-
var audioIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_audio),
29-
var documentIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_document),
30-
var fileManagerIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_file),
31-
var imageIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_image),
32-
var searchIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_search),
33-
var doneIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_send),
27+
var videoIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_video),
28+
var audioIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_audio),
29+
var documentIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_document),
30+
var fileManagerIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_file),
31+
var imageIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_image),
32+
var searchIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_search),
33+
var doneIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_send),
3434

3535
var showFileWhenClick: Boolean = false,
3636
var maxSelection: Int = 10,
@@ -62,13 +62,13 @@ data class FilePicker(
6262
}
6363

6464
fun setIcons(
65-
videoIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_video),
66-
audioIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_audio),
67-
documentIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_document),
68-
fileManagerIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_file),
69-
imageIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_image),
70-
doneIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_send),
71-
searchIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.ic_search),
65+
videoIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_video),
66+
audioIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_audio),
67+
documentIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_document),
68+
fileManagerIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_file),
69+
imageIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_image),
70+
doneIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_send),
71+
searchIcon: Drawable? = ContextCompat.getDrawable(context, R.drawable.mahdiasd_ic_search),
7272
): FilePicker {
7373
this.searchIcon = searchIcon
7474
this.videoIcon = videoIcon
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)