Skip to content

Commit

Permalink
removes mime type info from details screen as described in #1212
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyScherzinger authored and tobiasKaminsky committed Oct 24, 2017
1 parent e6c42cf commit 25150d6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,14 +474,6 @@ private void setFilename(String filename) {
* @param file : An {@link OCFile}
*/
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);

if (iv != null) {
Expand Down
21 changes: 0 additions & 21 deletions src/main/res/layout/file_details_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,6 @@
android:layout_marginRight="16dp"
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
android:id="@+id/fdSizeRow"
android:layout_width="wrap_content"
Expand Down

0 comments on commit 25150d6

Please sign in to comment.