mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
Show groupFolder correctly
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
3eecc09166
commit
03dbd49227
3 changed files with 17 additions and 0 deletions
5
drawable_resources/folder-group.svg
Normal file
5
drawable_resources/folder-group.svg
Normal file
|
@ -0,0 +1,5 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1">
|
||||
<path
|
||||
d="M1.46 2c-.25 0-.46.21-.46.46v11.08c0 .257.203.46.46.46h13.08c.257 0 .46-.203.46-.46V4.462a.47.47 0 0 0-.46-.465H8L6 2H1.46zm7.583 3.82c.671 0 1.24.49 1.24 1.123v.014c-.007.197-.007.424-.142.969l-.012.011a.914.914 0 0 1-.156.26c-.067.086-.145.173-.22.258l-.089.104c-.013.05-.03.104-.039.154-.038.187-.019.308 0 .35.333.141.668.267.955.388.314.133.584.264.764.479a.208.208 0 0 1 .05.103c.02.155.036.417.053.684.017.267.035.54.051.66a.212.212 0 0 1-.103.207c-.566.301-1.457.434-2.352.437-.895.004-1.793-.121-2.377-.437a.212.212 0 0 1-.104-.207c.022-.171.044-.385.069-.598l-.022.002c-.614.003-1.23-.084-1.63-.3a.146.146 0 0 1-.07-.143c.033-.264.076-.656.105-.922a.111.111 0 0 1 0-.018c.03-.129.12-.173.213-.23.091-.057.204-.105.328-.158.22-.096.466-.179.664-.248a.69.69 0 0 0-.018-.248l-.035-.153-.018-.017a3.558 3.558 0 0 1-.168-.186c-.05-.059-.088-.102-.115-.178l-.01-.007v-.01a3.08 3.08 0 0 1-.097-.664c0-.435.391-.772.851-.772.46 0 .852.337.852.772v.01c-.005.135-.005.29-.098.664l-.01.01a.61.61 0 0 1-.105.175c-.045.059-.1.12-.15.178l-.063.07c-.009.036-.02.074-.027.108a.448.448 0 0 0 0 .238c.228.097.46.183.656.266.15.063.277.134.387.216.144-.051.297-.114.424-.158a1.03 1.03 0 0 0-.026-.361c-.015-.07-.036-.149-.053-.22l-.025-.026a5.503 5.503 0 0 1-.246-.272c-.074-.085-.13-.148-.168-.258l-.012-.013v-.014c-.12-.522-.138-.768-.142-.969 0-.633.569-1.123 1.24-1.123z"
|
||||
fill="#0082c9" fill-rule="evenodd" />
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
|
@ -170,6 +170,8 @@ public final class MimeTypeUtil {
|
|||
drawableId = R.drawable.ic_list_encrypted_folder;
|
||||
} else if (WebdavEntry.MountType.EXTERNAL == mountType) {
|
||||
drawableId = R.drawable.folder_external;
|
||||
} else if (WebdavEntry.MountType.GROUP == mountType) {
|
||||
drawableId = R.drawable.ic_folder_group;
|
||||
} else {
|
||||
drawableId = R.drawable.folder;
|
||||
}
|
||||
|
|
10
src/main/res/drawable/ic_folder_group.xml
Normal file
10
src/main/res/drawable/ic_folder_group.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<vector android:height="24dp"
|
||||
android:viewportHeight="16"
|
||||
android:viewportWidth="16"
|
||||
android:width="24dp"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path
|
||||
android:fillColor="#0082c9"
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M1.46,2c-0.25,0 -0.46,0.21 -0.46,0.46v11.08c0,0.257 0.203,0.46 0.46,0.46h13.08c0.257,0 0.46,-0.203 0.46,-0.46L15,4.462a0.47,0.47 0,0 0,-0.46 -0.465L8,3.997L6,2L1.46,2zM9.043,5.82c0.671,0 1.24,0.49 1.24,1.123v0.014c-0.007,0.197 -0.007,0.424 -0.142,0.969l-0.012,0.011a0.914,0.914 0,0 1,-0.156 0.26c-0.067,0.086 -0.145,0.173 -0.22,0.258l-0.089,0.104c-0.013,0.05 -0.03,0.104 -0.039,0.154 -0.038,0.187 -0.019,0.308 0,0.35 0.333,0.141 0.668,0.267 0.955,0.388 0.314,0.133 0.584,0.264 0.764,0.479a0.208,0.208 0,0 1,0.05 0.103c0.02,0.155 0.036,0.417 0.053,0.684 0.017,0.267 0.035,0.54 0.051,0.66a0.212,0.212 0,0 1,-0.103 0.207c-0.566,0.301 -1.457,0.434 -2.352,0.437 -0.895,0.004 -1.793,-0.121 -2.377,-0.437a0.212,0.212 0,0 1,-0.104 -0.207c0.022,-0.171 0.044,-0.385 0.069,-0.598l-0.022,0.002c-0.614,0.003 -1.23,-0.084 -1.63,-0.3a0.146,0.146 0,0 1,-0.07 -0.143c0.033,-0.264 0.076,-0.656 0.105,-0.922a0.111,0.111 0,0 1,0 -0.018c0.03,-0.129 0.12,-0.173 0.213,-0.23 0.091,-0.057 0.204,-0.105 0.328,-0.158 0.22,-0.096 0.466,-0.179 0.664,-0.248a0.69,0.69 0,0 0,-0.018 -0.248l-0.035,-0.153 -0.018,-0.017a3.558,3.558 0,0 1,-0.168 -0.186c-0.05,-0.059 -0.088,-0.102 -0.115,-0.178l-0.01,-0.007v-0.01a3.08,3.08 0,0 1,-0.097 -0.664c0,-0.435 0.391,-0.772 0.851,-0.772 0.46,0 0.852,0.337 0.852,0.772v0.01c-0.005,0.135 -0.005,0.29 -0.098,0.664l-0.01,0.01a0.61,0.61 0,0 1,-0.105 0.175c-0.045,0.059 -0.1,0.12 -0.15,0.178l-0.063,0.07c-0.009,0.036 -0.02,0.074 -0.027,0.108a0.448,0.448 0,0 0,0 0.238c0.228,0.097 0.46,0.183 0.656,0.266 0.15,0.063 0.277,0.134 0.387,0.216 0.144,-0.051 0.297,-0.114 0.424,-0.158a1.03,1.03 0,0 0,-0.026 -0.361c-0.015,-0.07 -0.036,-0.149 -0.053,-0.22l-0.025,-0.026a5.503,5.503 0,0 1,-0.246 -0.272c-0.074,-0.085 -0.13,-0.148 -0.168,-0.258l-0.012,-0.013v-0.014c-0.12,-0.522 -0.138,-0.768 -0.142,-0.969 0,-0.633 0.569,-1.123 1.24,-1.123z" />
|
||||
</vector>
|
Loading…
Reference in a new issue