removes mime type info from details screen as described in #1212

This commit is contained in:
AndyScherzinger 2017-10-06 11:39:43 +02:00 committed by tobiasKaminsky
parent e6c42cf5f3
commit 25150d61c0
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 0 additions and 29 deletions

View file

@ -474,14 +474,6 @@ public class FileDetailFragment extends FileFragment implements OnClickListener,
* @param file : An {@link OCFile} * @param file : An {@link OCFile}
*/ */
private void setFiletype(OCFile file) { private void setFiletype(OCFile file) {
String mimetype = file.getMimetype();
TextView tv = (TextView) getView().findViewById(R.id.fdType);
if (tv != null) {
// mimetype MIME type to set
String printableMimetype = DisplayUtils.convertMIMEtoPrettyPrint(mimetype);
tv.setText(printableMimetype);
}
ImageView iv = (ImageView) getView().findViewById(R.id.fdIcon); ImageView iv = (ImageView) getView().findViewById(R.id.fdIcon);
if (iv != null) { if (iv != null) {

View file

@ -60,27 +60,6 @@
android:layout_marginRight="16dp" android:layout_marginRight="16dp"
android:layout_marginBottom="8dp"> android:layout_marginBottom="8dp">
<TableRow
android:id="@+id/fdTypeRow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/standard_half_margin">
<TextView
android:id="@+id/fdTypeLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/filedetails_type"
android:textSize="16sp" />
<TextView
android:id="@+id/fdType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/placeholder_filetype"
android:textSize="16sp"
android:layout_marginLeft="@dimen/standard_half_margin" />
</TableRow>
<TableRow <TableRow
android:id="@+id/fdSizeRow" android:id="@+id/fdSizeRow"
android:layout_width="wrap_content" android:layout_width="wrap_content"