Skip to content

Commit

Permalink
Use file type icons
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jun 12, 2020
1 parent 69cd654 commit eb5cbbd
Show file tree
Hide file tree
Showing 403 changed files with 40,627 additions and 56 deletions.
1 change: 1 addition & 0 deletions ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ FairEmail uses:
* [Material design icons](https://github.com/google/material-design-icons). Copyright ???. [Apache license version 2.0](https://github.com/google/material-design-icons#user-content-license).
* [CSS Parser](http://cssparser.sourceforge.net/). Copyright © 1999–2019. All rights reserved. [Apache License, Version 2.0](http://cssparser.sourceforge.net/licenses.html).
* [Java™ Architecture for XML Binding](https://github.com/eclipse-ee4j/jaxb-ri). Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. [GNU General Public License Version 2](https://github.com/eclipse-ee4j/jaxb-ri/blob/master/jaxb-ri/LICENSE.md).
* [File Icon Images](https://github.com/dmhendricks/file-icon-vectors). A collection of file type/extension SVG icons, available free for use in your applications. [MIT License](https://github.com/dmhendricks/file-icon-vectors/blob/master/LICENSE).
1 change: 1 addition & 0 deletions app/src/main/assets/ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ FairEmail uses:
* [Material design icons](https://github.com/google/material-design-icons). Copyright ???. [Apache license version 2.0](https://github.com/google/material-design-icons#user-content-license).
* [CSS Parser](http://cssparser.sourceforge.net/). Copyright © 1999–2019. All rights reserved. [Apache License, Version 2.0](http://cssparser.sourceforge.net/licenses.html).
* [Java™ Architecture for XML Binding](https://github.com/eclipse-ee4j/jaxb-ri). Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. [GNU General Public License Version 2](https://github.com/eclipse-ee4j/jaxb-ri/blob/master/jaxb-ri/LICENSE.md).
* [File Icon Images](https://github.com/dmhendricks/file-icon-vectors). A collection of file type/extension SVG icons, available free for use in your applications. [MIT License](https://github.com/dmhendricks/file-icon-vectors/blob/master/LICENSE).
64 changes: 8 additions & 56 deletions app/src/main/java/eu/faircode/email/AdapterAttachment.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,23 @@
Copyright 2018-2020 by Marcel Bokhorst (M66B)
*/

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.MimeTypeMap;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.core.content.FileProvider;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
Expand All @@ -51,7 +47,6 @@
import androidx.recyclerview.widget.ListUpdateCallback;
import androidx.recyclerview.widget.RecyclerView;

import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
Expand Down Expand Up @@ -115,7 +110,13 @@ private void bindTo(EntityAttachment attachment) {

ibDelete.setVisibility(readonly ? View.GONE :
attachment.isInline() && attachment.error == null ? View.INVISIBLE : View.VISIBLE);
ivType.setImageDrawable(null);

int resid = 0;
String extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(attachment.getMimeType());
if (extension != null)
resid = context.getResources().getIdentifier("file_" + extension, "drawable", context.getPackageName());
ivType.setImageResource(resid == 0 ? R.drawable.baseline_attachment_24 : resid);

tvName.setText(attachment.name);

if (attachment.size != null)
Expand Down Expand Up @@ -154,55 +155,6 @@ private void bindTo(EntityAttachment attachment) {

tvError.setText(attachment.error);
tvError.setVisibility(attachment.error == null ? View.GONE : View.VISIBLE);

Bundle args = new Bundle();
args.putLong("id", attachment.id);
args.putSerializable("file", attachment.getFile(context));
args.putString("type", attachment.getMimeType());

new SimpleTask<Drawable>() {
@Override
protected Drawable onExecute(Context context, Bundle args) throws Throwable {
File file = (File) args.getSerializable("file");
String type = args.getString("type");

Uri uri = FileProvider.getUriForFile(context, BuildConfig.APPLICATION_ID, file);

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndTypeAndNormalize(uri, type);

PackageManager pm = context.getPackageManager();

ComponentName component = intent.resolveActivity(pm);
if (component == null)
return null;

return pm.getApplicationIcon(component.getPackageName());
}

@Override
protected void onExecuted(Bundle args, Drawable icon) {
long id = args.getLong("id");

int pos = getAdapterPosition();
if (pos == RecyclerView.NO_POSITION)
return;

EntityAttachment attachment = items.get(pos);
if (attachment == null || !attachment.id.equals(id))
return;

if (icon == null)
ivType.setImageResource(R.drawable.baseline_attachment_24);
else
ivType.setImageDrawable(icon);
}

@Override
protected void onException(Bundle args, Throwable ex) {
Log.unexpectedError(parentFragment.getParentFragmentManager(), ex);
}
}.execute(context, owner, args, "attachment:icon");
}

@Override
Expand Down
81 changes: 81 additions & 0 deletions app/src/main/res/drawable/file_3g2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="72dp"
android:height="100dp"
android:viewportWidth="72"
android:viewportHeight="100">
<path
android:pathData="M45.2,1l27,26.7V99H0.2V1h45z">
<aapt:attr name="android:fillColor">
<gradient
android:startY="1"
android:startX="36.2"
android:endY="98.995"
android:endX="36.2"
android:type="linear">
<item android:offset="0" android:color="#FFE2CDE4"/>
<item android:offset="0.17" android:color="#FFE0CAE2"/>
<item android:offset="0.313" android:color="#FFDBC0DD"/>
<item android:offset="0.447" android:color="#FFD2B1D4"/>
<item android:offset="0.575" android:color="#FFC79DC7"/>
<item android:offset="0.698" android:color="#FFBA84B9"/>
<item android:offset="0.819" android:color="#FFAB68A9"/>
<item android:offset="0.934" android:color="#FF9C4598"/>
<item android:offset="1" android:color="#FF932A8E"/>
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FF000000"
android:pathData="M45.2,1l27,26.7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5 0.4,-1.8 -0.4,-1.7 -0.1,0.3 -0.6,0.2 -0.9,0.2zM44.4,54.7v1.5c0.7,0.2 0.6,-0.4 1.3,-0.2 -0.2,-0.5 0.4,-1.8 -0.4,-1.7 -0.1,0.3 -0.8,0.2 -0.9,0.4zM15,57c0.7,-0.5 1.3,-1.7 0.2,-2.3 -0.7,0.4 -0.8,1.6 -0.2,2.3zM41.1,55.7c-0.1,0.7 0.4,0.8 0.2,1.5 0.9,0 1.2,-0.6 1.1,-1.7 -0.4,-0.5 -0.8,0.1 -1.3,0.2zM38.1,58.4c1,0 1.2,-0.8 1.1,-1.9h-0.9c-0.3,0.4 -0.1,1.3 -0.2,1.9zM34.5,58v1.7c0.6,-0.1 1.3,-0.2 1.5,-0.8 -0.6,0 0.3,-1.6 -0.6,-1.3 0,0.4 -0.7,0.1 -0.9,0.4zM16,60.8c-0.4,-0.7 -0.2,-2 -1.3,-1.9 0.2,0.7 0.2,2.7 1.3,1.9zM29.8,59.9c0.5,0 0.1,0.9 0.2,1.3 0.8,0.1 1.2,-0.2 1.7,-0.4v-1.7c-0.9,-0.1 -1.6,0.1 -1.9,0.8zM25.1,60.5c0,0.8 -0.1,1.7 0.4,1.9 0,-0.5 0.8,-0.1 1.1,-0.2 0.3,-0.3 -0.2,-1.1 0,-1.9 -0.7,-0.2 -1,0.1 -1.5,0.2zM19,62.3v-1.7c-0.5,0 -0.6,-0.4 -1.3,-0.2 -0.1,1.1 0,2.1 1.3,1.9zM21.5,62.5h1.3c0.2,-0.9 -0.3,-1.1 -0.2,-1.9h-1.3c-0.1,0.9 0.2,1.2 0.2,1.9z">
<aapt:attr name="android:fillColor">
<gradient
android:startY="50.284"
android:startX="11.511"
android:endY="50.284"
android:endX="65.211"
android:type="linear">
<item android:offset="0.005" android:color="#FF963491"/>
<item android:offset="1" android:color="#FF70136B"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M45.2,1l27,26.7h-27V1z">
<aapt:attr name="android:fillColor">
<gradient
android:startY="27.794"
android:startX="45.269"
android:endY="14.294"
android:endX="58.769"
android:type="linear">
<item android:offset="0" android:color="#FFF9EFF6"/>
<item android:offset="0.378" android:color="#FFF8EDF5"/>
<item android:offset="0.515" android:color="#FFF3E6F1"/>
<item android:offset="0.612" android:color="#FFECDBEB"/>
<item android:offset="0.69" android:color="#FFE3CCE2"/>
<item android:offset="0.757" android:color="#FFD7B8D7"/>
<item android:offset="0.817" android:color="#FFCAA1C9"/>
<item android:offset="0.871" android:color="#FFBC88BB"/>
<item android:offset="0.921" android:color="#FFAE6CAB"/>
<item android:offset="0.965" android:color="#FF9F4D9B"/>
<item android:offset="1" android:color="#FF932A8E"/>
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FF000000"
android:pathData="M45.2,1l27,26.7h-27V1z"
android:strokeLineJoin="bevel"
android:strokeWidth="2"
android:fillAlpha="0"
android:strokeColor="#882383"/>
</vector>
91 changes: 91 additions & 0 deletions app/src/main/res/drawable/file_3ga.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="72dp"
android:height="100dp"
android:viewportWidth="72"
android:viewportHeight="100">
<path
android:pathData="M45.2,0.9l27.1,26.8v71.4H0V0.9h45.2z"
android:strokeAlpha="0.99"
android:fillAlpha="0.99">
<aapt:attr name="android:fillColor">
<gradient
android:startY="99.113"
android:startX="36.15"
android:endY="0.874"
android:endX="36.15"
android:type="linear">
<item android:offset="0" android:color="#FF595593"/>
<item android:offset="0.012" android:color="#FF5B5794"/>
<item android:offset="0.182" android:color="#FF7B77AA"/>
<item android:offset="0.352" android:color="#FF9896BF"/>
<item android:offset="0.521" android:color="#FFB2B2D2"/>
<item android:offset="0.687" android:color="#FFC7C9E2"/>
<item android:offset="0.848" android:color="#FFD6D9EC"/>
<item android:offset="1" android:color="#FFDBDFF0"/>
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FF000000"
android:pathData="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6,-2.3 -0.8,-0.6 -1.8,-0.8 -2.9,-0.8 -1.8,0 -3.2,0.6 -4.2,1.7s-1.6,2.8 -1.6,5c0,2.4 0.5,4.1 1.6,5.3 1.1,1.2 2.5,1.8 4.2,1.8 0.9,0 1.7,-0.2 2.6,-0.5 0.9,-0.3 1.6,-0.7 2.2,-1.2v-2.5L35,84.1zM65.6,91.2h-4.4l-1.8,-4.5h-8l-1.7,4.5h-4.3l7.8,-19.9h4.3l8.1,19.9zM58.1,83.3l-2.8,-7.4 -2.7,7.4h5.5z"
android:fillColor="#fff"/>
<path
android:pathData="M45.2,0.9l27.1,26.8H45.2V0.9z"
android:strokeAlpha="0.99"
android:fillAlpha="0.99">
<aapt:attr name="android:fillColor">
<gradient
android:startY="14.727"
android:startX="58.321"
android:endY="23.161"
android:endX="50.783"
android:type="linear">
<item android:offset="0" android:color="#FF595593"/>
<item android:offset="0.07" android:color="#FF706CA2"/>
<item android:offset="0.159" android:color="#FF8988B5"/>
<item android:offset="0.255" android:color="#FFA3A5C8"/>
<item android:offset="0.359" android:color="#FFBABFD9"/>
<item android:offset="0.471" android:color="#FFCED5E7"/>
<item android:offset="0.598" android:color="#FFDEE6F2"/>
<item android:offset="0.751" android:color="#FFE9F3FA"/>
<item android:offset="1" android:color="#FFECF8FE"/>
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FF000000"
android:pathData="M45.2,0.9l27.1,26.8H45.2V0.9z"
android:strokeAlpha="0.99"
android:strokeLineJoin="bevel"
android:strokeWidth="2"
android:fillAlpha="0"
android:strokeColor="#2d3293"/>
<path
android:pathData="M14.8,39.3h6.5l13,-10v33l-13,-10h-6.5v-13zM40.9,49.5v2.9c0.1,0 1.6,0 3.2,-0.8s3.4,-2.7 3.4,-5.8c0,-3.1 -1.7,-5 -3.4,-5.8 -1.6,-0.8 -3.1,-0.8 -3.2,-0.8v2.9h0.1c0.4,0 1.4,0.2 2.1,0.7 0.8,0.5 1.4,1.2 1.4,3 0,2 -0.8,2.6 -1.8,3.2 -0.5,0.2 -1,0.4 -1.3,0.4 -0.2,0 -0.3,0 -0.4,0.1h-0.1zM40.9,54.6v2.9c0.1,0 2.8,0 5.8,-1.4 2.9,-1.4 6,-4.6 5.9,-10.1 0.1,-5.6 -3,-8.7 -5.9,-10.1 -2.9,-1.4 -5.6,-1.4 -5.8,-1.4v2.9h0.3c0.8,0.1 3.1,0.4 4.9,1.6 1.9,1.2 3.5,3.1 3.5,7.1 0,4.6 -2.1,6.5 -4.3,7.5 -1.1,0.6 -2.2,0.8 -3.1,1 -0.4,0.1 -0.8,0.1 -1,0.1 -0.2,-0.1 -0.3,-0.1 -0.3,-0.1zM40.9,59.6v2.9c0.1,0 4.1,0 8.3,-2.1 4.2,-2 8.5,-6.5 8.5,-14.6 0.1,-8.1 -4.3,-12.6 -8.5,-14.6 -4.2,-2.1 -8.2,-2.1 -8.3,-2.1L40.9,32h0.6c1.3,0.1 4.8,0.6 7.7,2.5 2.9,1.9 5.5,5.1 5.6,11.3 -0.1,7 -3.4,10.2 -6.9,12 -1.7,0.9 -3.5,1.3 -4.9,1.5 -0.7,0.1 -1.2,0.2 -1.6,0.2 -0.3,0.1 -0.5,0.1 -0.5,0.1zM40.9,32.1z"
android:strokeAlpha="0.99"
android:fillAlpha="0.99">
<aapt:attr name="android:fillColor">
<gradient
android:startY="45.826"
android:startX="14.776"
android:endY="45.826"
android:endX="57.726"
android:type="linear">
<item android:offset="0" android:color="#FF352C7F"/>
<item android:offset="0.074" android:color="#FF3E3786"/>
<item android:offset="0.266" android:color="#FF544F96"/>
<item android:offset="0.457" android:color="#FF6763A5"/>
<item android:offset="0.645" android:color="#FF7572B1"/>
<item android:offset="0.827" android:color="#FF7E7CBA"/>
<item android:offset="1" android:color="#FF8180BD"/>
</gradient>
</aapt:attr>
</path>
</vector>
Loading

0 comments on commit eb5cbbd

Please sign in to comment.