mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
removes mime type info from details screen as described in #1212
This commit is contained in:
parent
e6c42cf5f3
commit
25150d61c0
2 changed files with 0 additions and 29 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue