Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f9277f2 authored by Jo De Boeck's avatar Jo De Boeck Committed by Danny Baumann
Browse files

Implement showing of apk icon and image and video thumbs in listing

Patchset 8: Move some stuff to MimeTypeHelper
            Add cache
            Add image and thumbail support
            Add setting for this (defaul false for improve performance)
Patchset 9: Fixed icon derp display
            Same size for all drawables
Patchset 10: Async drawable load
             Shrink cache
Patchset 11: Use layout's width and height to scale the images
Patchset 12: Music album thumbs
Patchset 13: Added suggestions
             Fixed FC
Patchset 14: Use content observer for icons
             Keep context in icon holder
             Fix scroll position being reset on thumbnail load
Patchset 15: Additional fixes and optimizations
Patchset 16: Do not saturate the ui with constants redrawing
             Do not send back events while changing to a new directory
             Fix FC on HistoryActivity (creation of a ContentObserver inside of a non-ui thread)
             Added normalized media paths
Patchset 17: Use a HandlerThread to handle the preview loads
Patchset 18: Optimizations
Patchset 19: Fix deadlock
Patchset 20: Remove debug leftover
Patchset 21: Fix whitespace
Patchset 22: Misc. cleanup

Change-Id: I0a4ea801ff0cfbf31dda125b8925e7d35f4c3c99
parent 2f2d3e6a
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -28,13 +28,14 @@
    android:contentDescription="@null"
    android:src="@drawable/btn_holo_light_check_off_normal" />

  <ImageView
  <com.cyanogenmod.filemanager.ui.widgets.FixedSizeImageView
    android:id="@+id/navigation_view_item_icon"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_width="@dimen/default_row_height"
    android:layout_height="@dimen/default_row_height"
    android:layout_alignParentTop="true"
    android:layout_toRightOf="@id/navigation_view_item_check"
    android:layout_alignWithParentIfMissing="true"
    android:scaleType="centerInside"
    android:contentDescription="@null"
    android:src="@null" />

+4 −3
Original line number Diff line number Diff line
@@ -28,11 +28,12 @@
    android:gravity="center|center_vertical"
    android:src="@drawable/btn_holo_light_check_off_normal" />

  <ImageView
  <com.cyanogenmod.filemanager.ui.widgets.FixedSizeImageView
    android:id="@+id/navigation_view_item_icon"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_width="@dimen/default_row_height"
    android:layout_height="@dimen/default_row_height"
    android:layout_toRightOf="@+id/navigation_view_item_check"
    android:scaleType="centerInside"
    android:contentDescription="@null"
    android:gravity="center|center_vertical"
    android:src="@null" />
+4 −3
Original line number Diff line number Diff line
@@ -28,13 +28,14 @@
    android:contentDescription="@null"
    android:src="@drawable/btn_holo_light_check_off_normal" />

  <ImageView
  <com.cyanogenmod.filemanager.ui.widgets.FixedSizeImageView
    android:id="@+id/navigation_view_item_icon"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_width="@dimen/default_row_height"
    android:layout_height="@dimen/default_row_height"
    android:layout_alignParentTop="true"
    android:layout_toRightOf="@id/navigation_view_item_check"
    android:layout_alignWithParentIfMissing="true"
    android:scaleType="centerInside"
    android:contentDescription="@null"
    android:src="@null" />

+4 −0
Original line number Diff line number Diff line
@@ -668,6 +668,10 @@
  <!-- Preferences * General * Compute folder statistics summary on -->
  <string name="pref_compute_folder_statistics_on">Warning! The computation of folder statistics is costly in time and
    system resources</string>
  <!-- Preferences * General * Display thumbs -->
  <string name="pref_display_thumbs">Preview</string>
  <!-- Preferences * General * Display thumbs summary -->
  <string name="pref_display_thumbs_summary">Show a preview image for pictures, videos, music files and apps.</string>
  <!-- Preferences * General * Use flinger detection -->
  <string name="pref_use_flinger">Use swipe gestures</string>
  <!-- Preferences * General * Use flinger detection summary -->
+8 −0
Original line number Diff line number Diff line
@@ -56,6 +56,14 @@
        android:persistent="true"
        android:defaultValue="false" />

      <!-- Thumbs -->
      <CheckBoxPreference
        android:key="cm_filemanager_show_thumbs"
        android:title="@string/pref_display_thumbs"
        android:summary="@string/pref_display_thumbs_summary"
        android:persistent="true"
        android:defaultValue="false" />

      <!-- Use flinger -->
      <!--
      <CheckBoxPreference
Loading