Deleted unused resources

added file icons for KP2A databases
disabled logging output
This commit is contained in:
Philipp Crocoll 2013-09-26 02:50:10 +02:00
parent 5c49a7fcb1
commit 881c77c565
45 changed files with 64 additions and 505 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 975 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -1,26 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2012 Hai Bison
See the file LICENSE at the root directory of this project for copying
permission.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/afc_color_list_group_view_background" >
<TextView
android:id="@+id/afc_textview_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:ellipsize="middle"
android:gravity="center"
android:maxLines="@integer/afc_history_filename_max_lines"
android:padding="@dimen/afc_10sp"
android:textIsSelectable="false"
android:textStyle="bold" />
</RelativeLayout>

View File

@ -1,64 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2012 Hai Bison
See the file LICENSE at the root directory of this project for copying
permission.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/afc_textview_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/afc_2sp"
android:layout_marginLeft="@dimen/afc_2sp"
android:layout_marginRight="@dimen/afc_5sp"
android:layout_marginTop="@dimen/afc_5sp"
android:gravity="right|top"
android:minWidth="@dimen/afc_view_history_sub_item_textview_time_min_width"
android:textIsSelectable="false" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/afc_2sp"
android:layout_toLeftOf="@+id/afc_checkbox"
android:layout_toRightOf="@id/afc_textview_time" >
<TextView
android:id="@+id/afc_textview_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:ellipsize="middle"
android:maxLines="@integer/afc_history_filename_max_lines"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textIsSelectable="false" />
<TextView
android:id="@+id/afc_textview_path"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/afc_textview_name"
android:layout_marginTop="@dimen/afc_2sp"
android:ellipsize="middle"
android:maxLines="@integer/afc_history_pathname_max_lines"
android:textIsSelectable="false" />
</RelativeLayout>
<CheckBox
android:id="@+id/afc_checkbox"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:focusable="false"
android:focusableInTouchMode="false"
android:gravity="top|right"
android:padding="@dimen/afc_5sp" />
</RelativeLayout>

View File

@ -1,91 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2012 Hai Bison
See the file LICENSE at the root directory of this project for copying
permission.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout
android:id="@+id/afc_viewgroup_controls"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" >
<ExpandableListView
android:id="@+id/afc_listview_bookmarks"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/afc_viewgroup_footer"
android:layout_alignParentTop="true"
android:childDivider="@android:color/transparent"
android:childIndicator="@null"
android:divider="@drawable/afc_expandable_listview_group_divider"
android:groupIndicator="@null" />
<TextView
android:id="@+id/afc_empty_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_margin="@dimen/afc_15dp"
android:text="@string/afc_msg_empty"
android:textStyle="italic"
android:visibility="gone" />
<LinearLayout
android:id="@+id/afc_viewgroup_footer"
style="?attr/afc_button_bar_style"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_margin="@dimen/afc_2dp"
android:orientation="vertical"
android:visibility="gone" >
<View
android:layout_width="match_parent"
android:layout_height="@dimen/afc_viewgroup_button_locations_bottom_divider_height" />
<LinearLayout
style="?attr/afc_button_bar_style"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Button
android:id="@+id/afc_button_clear"
style="?attr/afc_button_bar_button_style"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/afc_cmd_clear" >
</Button>
<Button
android:id="@+id/afc_button_ok"
style="?attr/afc_button_bar_button_style"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@android:string/ok" >
</Button>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
<!-- Must use this to stretch the dialog (if it is used inside a dialog). -->
<RelativeLayout
android:id="@+id/afc_view_loading"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include layout="@layout/afc_view_loading" />
</RelativeLayout>
</RelativeLayout>

View File

@ -1,126 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2012 Hai Bison
See the file LICENSE at the root directory of this project for copying
permission.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:afc="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout
android:id="@+id/afc_viewgroup_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_margin="@dimen/afc_5dp" >
<TextView
android:id="@+id/afc_textview_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/afc_button_search"
android:drawableLeft="@android:drawable/ic_menu_recent_history"
android:gravity="center_vertical"
android:text="@string/afc_history"
android:textAppearance="?android:attr/textAppearanceMedium" />
<ImageButton
android:id="@+id/afc_button_search"
style="@style/afc_widget_search_view_button_search"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/afc_15dp"
android:layout_toLeftOf="@+id/afc_viewgroup_navigators"
android:contentDescription="@string/afc_hint_search"
android:enabled="false"
android:visibility="gone" />
<LinearLayout
android:id="@+id/afc_viewgroup_navigators"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:orientation="horizontal" >
<ImageView
android:id="@+id/afc_button_go_back"
style="@style/afc_action_navi_left"
android:layout_marginTop="0dp"
android:contentDescription="@string/afc_hint_newer"
android:enabled="false" />
<ImageView
android:id="@+id/afc_button_go_forward"
style="@style/afc_action_navi_right"
android:layout_marginTop="0dp"
android:contentDescription="@string/afc_hint_older"
android:enabled="false" />
</LinearLayout>
</RelativeLayout>
<group.pals.android.lib.ui.filechooser.ui.widget.AfcSearchView
android:id="@+id/afc_afc_search_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/afc_viewgroup_header"
android:layout_marginBottom="@dimen/afc_5dp"
android:layout_marginLeft="@dimen/afc_15dp"
android:layout_marginRight="@dimen/afc_15dp"
android:layout_marginTop="@dimen/afc_5dp"
afc:delayTimeSubmission="@integer/afc_afc_search_view_delay_time_submission"
afc:enabled="false"
afc:hint="@string/afc_hint_search"
android:visibility="gone" />
<View
android:id="@+id/afc_view_header_divider"
android:layout_width="match_parent"
android:layout_height="@dimen/afc_viewgroup_button_locations_bottom_divider_height"
android:layout_below="@id/afc_afc_search_view"
android:background="@color/afc_border_line_dark" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_below="@id/afc_view_header_divider" >
<RelativeLayout
android:id="@+id/afc_viewgroup_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" >
<ExpandableListView
android:id="@+id/afc_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fastScrollEnabled="true"
android:groupIndicator="@null" >
</ExpandableListView>
<TextView
android:id="@+id/afc_empty_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/afc_15dp"
android:gravity="center"
android:text="@string/afc_msg_empty"
android:textStyle="italic"
android:visibility="gone" />
</RelativeLayout>
<include
android:id="@+id/afc_view_loading"
layout="@layout/afc_view_loading" />
</RelativeLayout>
</RelativeLayout>

View File

@ -1,116 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2012 Hai Bison
See the file LICENSE at the root directory of this project for copying
permission.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:afc="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout
android:id="@+id/afc_viewgroup_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_margin="@dimen/afc_5dp" >
<TextView
android:id="@+id/afc_textview_header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:drawableLeft="@android:drawable/ic_menu_recent_history"
android:gravity="center_vertical"
android:text="@string/afc_history"
android:textAppearance="?android:attr/textAppearanceMedium" />
<group.pals.android.lib.ui.filechooser.ui.widget.AfcSearchView
android:id="@+id/afc_afc_search_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginBottom="@dimen/afc_5dp"
android:layout_marginLeft="@dimen/afc_15dp"
android:layout_marginRight="@dimen/afc_15dp"
android:layout_marginTop="@dimen/afc_5dp"
android:layout_toLeftOf="@+id/afc_viewgroup_navigators"
android:layout_toRightOf="@id/afc_textview_header"
afc:closable="false"
afc:delayTimeSubmission="@integer/afc_afc_search_view_delay_time_submission"
afc:enabled="false"
afc:hint="@string/afc_hint_search"
afc:iconified="false" />
<LinearLayout
android:id="@+id/afc_viewgroup_navigators"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:orientation="horizontal" >
<ImageView
android:id="@+id/afc_button_go_back"
style="@style/afc_action_navi_left"
android:layout_marginTop="0dp"
android:contentDescription="@string/afc_hint_newer"
android:enabled="false" />
<ImageView
android:id="@+id/afc_button_go_forward"
style="@style/afc_action_navi_right"
android:layout_marginTop="0dp"
android:contentDescription="@string/afc_hint_older"
android:enabled="false" />
</LinearLayout>
</RelativeLayout>
<View
android:id="@+id/afc_view_header_divider"
android:layout_width="match_parent"
android:layout_height="@dimen/afc_viewgroup_button_locations_bottom_divider_height"
android:layout_below="@id/afc_viewgroup_header"
android:background="@color/afc_border_line_dark" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_below="@id/afc_view_header_divider" >
<RelativeLayout
android:id="@+id/afc_viewgroup_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" >
<ExpandableListView
android:id="@+id/afc_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fastScrollEnabled="true"
android:groupIndicator="@null" >
</ExpandableListView>
<TextView
android:id="@+id/afc_empty_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/afc_15dp"
android:gravity="center"
android:text="@string/afc_msg_empty"
android:textStyle="italic"
android:visibility="gone" />
</RelativeLayout>
<include
android:id="@+id/afc_view_loading"
layout="@layout/afc_view_loading" />
</RelativeLayout>
</RelativeLayout>

View File

@ -9,11 +9,6 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:afc="http://schemas.android.com/apk/res-auto" >
<item
android:id="@+id/afc_menuitem_history"
afc:showAsAction="ifRoom"
android:icon="@android:drawable/ic_menu_recent_history"
android:title="@string/afc_history"/>
<item
android:id="@+id/afc_menuitem_sort"
afc:showAsAction="ifRoom"

View File

@ -22,8 +22,6 @@
<string name="afc_cmd_home">Inicio</string>
<string name="afc_cmd_list_view">Lista</string>
<string name="afc_cmd_new_folder">Nuevo directorio…</string>
<string name="afc_cmd_reload">Recargar</string>
<string name="afc_cmd_remove_from_list">Eliminar de la lista</string>
<string name="afc_cmd_rename">Renombrar</string>
<string name="afc_cmd_select_all_files">Seleccionar todos los ficheros</string>
<string name="afc_cmd_select_all_folders">Seleccionar todas los directorios</string>
@ -39,14 +37,12 @@
<string name="afc_hint_older">más viejo</string>
<string name="afc_hint_save_as_filename">nombre de fichero</string>
<string name="afc_hint_search">búsqueda</string>
<string name="afc_history">Historia</string>
<string name="afc_msg_app_doesnot_have_permission_to_create_files">La aplicación no tiene permisos para crear ficheros/directorios</string>
<string name="afc_msg_app_doesnot_have_permission_to_delete_files">La aplicación no tiene permisos para eliminar ficheros/directorios</string>
<string name="afc_msg_cancelled">Cancelado</string>
<string name="afc_msg_cannot_connect_to_file_provider_service">No se puede conectar con el servicio proveedor de ficheros</string>
<string name="afc_msg_cannot_create_new_folder_here">No se puede crear un nuevo directorio aquí</string>
<string name="afc_msg_cannot_save_a_file_here">No se puede guardar un archivo aquí</string>
<string name="afc_msg_confirm_clear_history">¿Está seguro que desea borrar el historial?</string>
<string name="afc_msg_done">Hecho</string>
<string name="afc_msg_empty">Vacío</string>
<string name="afc_msg_failed_please_try_again">Error. Por favor, inténtelo de nuevo.</string>

View File

@ -23,7 +23,6 @@
<string name="afc_cmd_list_view">リストビュー</string>
<string name="afc_cmd_new_folder">新規フォルダ</string>
<string name="afc_cmd_reload">再読み込み</string>
<string name="afc_cmd_remove_from_list">リストから削除</string>
<string name="afc_cmd_select_all_files">全てのファイルを選択</string>
<string name="afc_cmd_select_all_folders">全てのフォルダを選択</string>
<string name="afc_cmd_sort">ソート</string>
@ -59,7 +58,6 @@
<string name="afc_title_confirmation">確認</string>
<string name="afc_title_date">日付</string>
<string name="afc_title_error">エラー</string>
<string name="afc_title_history">ヒストリー</string>
<string name="afc_title_info">詳細</string>
<string name="afc_title_name">名前</string>
<string name="afc_title_save_as">次として保存</string>

View File

@ -9,6 +9,5 @@
<resources>
<item name="afc_fragment_files" type="layout">@layout/afc_fragment_files_large</item>
<item name="afc_viewgroup_history" type="layout">@layout/afc_viewgroup_history_large</item>
</resources>

View File

@ -8,6 +8,5 @@
<resources>
<integer name="afc_pkey_history_manager_display_items_per_page">50</integer>
</resources>

View File

@ -9,6 +9,5 @@
<resources>
<item name="afc_fragment_files" type="layout">@layout/afc_fragment_files_large</item>
<item name="afc_viewgroup_history" type="layout">@layout/afc_viewgroup_history_large</item>
</resources>

View File

@ -8,6 +8,4 @@
<resources>
<integer name="afc_pkey_history_manager_display_items_per_page">50</integer>
</resources>

View File

@ -17,7 +17,6 @@
<string name="afc_cmd_list_view">Danh sách</string>
<string name="afc_cmd_new_folder">Tạo thư mục mới…</string>
<string name="afc_cmd_reload">Tải lại</string>
<string name="afc_cmd_remove_from_list">Xóa khỏi danh sách</string>
<string name="afc_cmd_rename">Đổi tên</string>
<string name="afc_cmd_select_all_files">Chọn hết tập tin</string>
<string name="afc_cmd_select_all_folders">Chọn hết thư mục</string>
@ -33,14 +32,12 @@
<string name="afc_hint_older">cũ hơn</string>
<string name="afc_hint_save_as_filename">tên tập tin</string>
<string name="afc_hint_search">tìm kiếm</string>
<string name="afc_history">Lịch sử</string>
<string name="afc_msg_app_doesnot_have_permission_to_create_files">Ứng dụng này không có quyền tạo mới tập tin/ thư mục</string>
<string name="afc_msg_app_doesnot_have_permission_to_delete_files">Ứng dụng này không có quyền xóa tập tin/ thư mục</string>
<string name="afc_msg_cancelled">Hủy bỏ</string>
<string name="afc_msg_cannot_connect_to_file_provider_service">Không thể kết nối đến dịch vụ cung cấp tập tin</string>
<string name="afc_msg_cannot_create_new_folder_here">Không thể tạo thư mục mới ở đây</string>
<string name="afc_msg_cannot_save_a_file_here">Không thể lưu tập tin ở đây</string>
<string name="afc_msg_confirm_clear_history">Bạn có chắc muốn xoá hết lịch sử không?</string>
<string name="afc_msg_done">Xong</string>
<string name="afc_msg_empty">Không có gì</string>
<string name="afc_msg_failed_please_try_again">Thất bại. Vui lòng thử lại.</string>
@ -64,10 +61,8 @@
<string name="afc_title_confirmation">Xác nhận</string>
<string name="afc_title_date">Ngày tháng</string>
<string name="afc_title_error">Lỗi</string>
<string name="afc_title_history">Lịch sử</string>
<string name="afc_title_info">Thông tin</string>
<string name="afc_title_name">Tên</string>
<string name="afc_title_rename">Đổi tên…</string>
<string name="afc_title_save_as">Lưu…</string>
<string name="afc_title_size">Kích thước</string>
<string name="afc_title_sort_by">Sắp xếp theo…</string>

View File

@ -23,6 +23,5 @@
<dimen name="afc_context_menu_width">290dp</dimen>
<dimen name="afc_single_button_min_width">192sp</dimen>
<dimen name="afc_viewgroup_button_locations_bottom_divider_height">1dp</dimen>
<dimen name="afc_view_history_sub_item_textview_time_min_width">65sp</dimen>
</resources>

View File

@ -8,8 +8,6 @@
<resources>
<integer name="afc_history_filename_max_lines">2</integer>
<integer name="afc_history_pathname_max_lines">3</integer>
<integer name="afc_afc_search_view_delay_time_submission">999</integer>
</resources>

View File

@ -18,9 +18,7 @@
<integer name="afc_pkey_display_view_type_def">0</integer>
<integer name="afc_pkey_display_sort_type_def">0</integer>
<integer name="afc_pkey_history_manager_display_items_per_page">30</integer>
<integer name="afc_pkey_history_validity_in_days_def">30</integer>
<bool name="afc_pkey_display_sort_ascending_def">true</bool>
<bool name="afc_pkey_display_show_time_for_old_days_this_year_def">false</bool>
<bool name="afc_pkey_display_show_time_for_old_days_def">false</bool>

View File

@ -11,40 +11,28 @@
<string name="afc_cmd_advanced_selection_all">All</string>
<string name="afc_cmd_advanced_selection_invert">Invert selection</string>
<string name="afc_cmd_advanced_selection_none">None</string>
<string name="afc_cmd_clear">Clear</string>
<string name="afc_cmd_grid_view">Grid view</string>
<string name="afc_cmd_home">Home</string>
<string name="afc_cmd_list_view">List view</string>
<string name="afc_cmd_new_folder">New folder…</string>
<string name="afc_cmd_reload">Reload</string>
<string name="afc_cmd_remove_from_list">Remove from list</string>
<string name="afc_cmd_rename">Rename</string>
<string name="afc_cmd_select_all_files">Select all files</string>
<string name="afc_cmd_select_all_folders">Select all folders</string>
<string name="afc_cmd_sort">Sort…</string>
<string name="afc_cmd_sort_by_name">Sort by name</string>
<string name="afc_file">file</string>
<string name="afc_folder">folder</string>
<string name="afc_hint_clear">clear</string>
<string name="afc_hint_double_tap_to_select_file">Double tap to select file/ folder</string>
<string name="afc_hint_folder_name">folder name</string>
<string name="afc_hint_new_name">new name</string>
<string name="afc_hint_newer">newer</string>
<string name="afc_hint_older">older</string>
<string name="afc_hint_save_as_filename">filename</string>
<string name="afc_hint_search">search</string>
<string name="afc_history">History</string>
<string name="afc_msg_app_doesnot_have_permission_to_create_files">This application does not have permission to create files/ folders</string>
<string name="afc_msg_app_doesnot_have_permission_to_delete_files">This application does not have permission to delete files/ folders</string>
<string name="afc_msg_cancelled">Cancelled</string>
<string name="afc_msg_cannot_connect_to_file_provider_service">Cannot connect to file provider service</string>
<string name="afc_msg_cannot_create_new_folder_here">Cannot create new folder here</string>
<string name="afc_msg_cannot_save_a_file_here">Cannot save a file here</string>
<string name="afc_msg_confirm_clear_history">Are you sure you want to clear history?</string>
<string name="afc_msg_done">Done</string>
<string name="afc_msg_empty">Empty</string>
<string name="afc_msg_failed_please_try_again">Failed. Please try again.</string>
<string name="afc_msg_filename_is_empty">Filename is empty</string>
<string name="afc_msg_loading">Loading…</string>
<string name="afc_phone">Phone</string>
<string name="afc_pmsg_cannot_access_dir">Cannot access \"%1$s\"</string>
@ -58,20 +46,16 @@
<string name="afc_pmsg_filename_is_invalid">File name \"%1$s\" is invalid</string>
<string name="afc_pmsg_max_file_count_allowed">…has more files, max allowed: %1$,d</string>
<string name="afc_pmsg_unknown_error">Unknown error: %1$s</string>
<string name="afc_pmsg_xxx_items">%1$,d items</string>
<string name="afc_root">Root</string>
<string name="afc_title_advanced_selection">Select…</string>
<string name="afc_title_alert">Alert</string>
<string name="afc_title_confirmation">Confirmation</string>
<string name="afc_title_date">Date</string>
<string name="afc_title_error">Error</string>
<string name="afc_title_info">Info</string>
<string name="afc_title_name">Name</string>
<string name="afc_title_rename">Rename…</string>
<string name="afc_title_save_as">Save as…</string>
<string name="afc_title_size">Size</string>
<string name="afc_title_sort_by">Sort by…</string>
<string name="afc_today">Today</string>
<string name="afc_yesterday">Yesterday</string>
<plurals name="afc_title_choose_directories">

View File

@ -13,6 +13,7 @@ import group.pals.android.lib.ui.filechooser.providers.BaseFileProviderUtils;
import group.pals.android.lib.ui.filechooser.providers.basefile.BaseFileContract.BaseFile;
import group.pals.android.lib.ui.filechooser.utils.Converter;
import group.pals.android.lib.ui.filechooser.utils.DateUtils;
import group.pals.android.lib.ui.filechooser.utils.Utils;
import group.pals.android.lib.ui.filechooser.utils.ui.ContextMenuUtils;
import group.pals.android.lib.ui.filechooser.utils.ui.LoadingDialog;
import group.pals.android.lib.ui.filechooser.utils.ui.Ui;
@ -460,7 +461,7 @@ public class BaseFileAdapter extends ResourceCursorAdapter {
@Override
public boolean onTouch(View v, MotionEvent event) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME,
"mImageIconOnTouchListener.onTouch() >> ACTION = "
+ event.getAction());

View File

@ -11,6 +11,7 @@ import group.pals.android.lib.ui.filechooser.prefs.DisplayPrefs;
import group.pals.android.lib.ui.filechooser.providers.basefile.BaseFileContract.BaseFile;
import group.pals.android.lib.ui.filechooser.providers.localfile.LocalFileContract;
import group.pals.android.lib.ui.filechooser.providers.localfile.LocalFileProvider;
import group.pals.android.lib.ui.filechooser.utils.Utils;
import group.pals.android.lib.ui.filechooser.utils.ui.Dlg;
import group.pals.android.lib.ui.filechooser.utils.ui.Ui;
import android.content.Context;
@ -244,7 +245,7 @@ public class FileChooserActivity extends FragmentActivity {
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, String.format("onKeyDown() >> %,d", keyCode));
if (keyCode == KeyEvent.KEYCODE_BACK) {
@ -253,7 +254,7 @@ public class FileChooserActivity extends FragmentActivity {
* is not available in API 4.
*/
if (mFragmentFiles.isLoading()) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME,
"onKeyDown() >> KEYCODE_BACK >> cancelling previous query...");
mFragmentFiles.cancelPreviousLoader();

View File

@ -343,7 +343,7 @@ public class FragmentFiles extends Fragment implements
@Override
public void onPrepareOptionsMenu(Menu menu) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "onPrepareOptionsMenu()");
/*
@ -427,16 +427,16 @@ public class FragmentFiles extends Fragment implements
@Override
public void onStop() {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "onStop()");
super.onStop();
HistoryProviderUtils.doCleanupOutdatedHistoryItems(getActivity());
HistoryProviderUtils.clearHistory(getActivity());
}// onStop()
@Override
public void onDestroy() {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "onDestroy()");
super.onDestroy();
@ -470,7 +470,7 @@ public class FragmentFiles extends Fragment implements
String negativeRegex = getArguments().getString(
FileChooserActivity.EXTRA_NEGATIVE_REGEX_FILTER);
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "onCreateLoader() >> path = " + path);
return new CursorLoader(
@ -985,7 +985,7 @@ public class FragmentFiles extends Fragment implements
* @param savedInstanceState
*/
private void loadInitialPath(final Bundle savedInstanceState) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, String.format(
"loadInitialPath() >> authority=[%s] | mRoot=[%s]",
mFileProviderAuthority, mRoot));
@ -1059,7 +1059,7 @@ public class FragmentFiles extends Fragment implements
getActivity().finish();
}
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "loadInitialPath() >> " + path);
setCurrentLocation(path);
@ -1655,7 +1655,7 @@ public class FragmentFiles extends Fragment implements
* Updates or inserts {@code path} into history database.
*/
private void updateDbHistory(Uri path) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "updateDbHistory() >> path = " + path);
Calendar cal = Calendar.getInstance();
@ -1663,7 +1663,7 @@ public class FragmentFiles extends Fragment implements
- (cal.get(Calendar.HOUR_OF_DAY) * 60 * 60 * 1000
+ cal.get(Calendar.MINUTE) * 60 * 1000 + cal
.get(Calendar.SECOND) * 1000);
if (BuildConfig.DEBUG) {
if (Utils.doLog()) {
Log.d(CLASSNAME,
String.format("beginToday = %s (%s)", DbUtils
.formatNumber(beginTodayMillis), new Date(

View File

@ -11,6 +11,7 @@ import group.pals.android.lib.ui.filechooser.BuildConfig;
import group.pals.android.lib.ui.filechooser.providers.BaseFileProviderUtils;
import group.pals.android.lib.ui.filechooser.providers.DbUtils;
import group.pals.android.lib.ui.filechooser.providers.basefile.BaseFileContract.BaseFile;
import group.pals.android.lib.ui.filechooser.utils.Utils;
import java.util.Arrays;
import java.util.Date;
@ -227,7 +228,7 @@ public class HistoryProvider extends ContentProvider {
@Override
public synchronized Cursor query(Uri uri, String[] projection,
String selection, String[] selectionArgs, String sortOrder) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, String.format(
"query() >> uri = %s, selection = %s, sortOrder = %s", uri,
selection, sortOrder));
@ -284,7 +285,7 @@ public class HistoryProvider extends ContentProvider {
* Opens the database object in "read" mode, since no writes need to be
* done.
*/
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME,
String.format("Going to SQLiteQueryBuilder >> db = %s", db));
if (db == null) {

View File

@ -10,6 +10,7 @@ package group.pals.android.lib.ui.filechooser.providers.history;
import group.pals.android.lib.ui.filechooser.BuildConfig;
import group.pals.android.lib.ui.filechooser.R;
import group.pals.android.lib.ui.filechooser.providers.DbUtils;
import group.pals.android.lib.ui.filechooser.utils.Utils;
import java.util.Date;
@ -34,8 +35,8 @@ public class HistoryProviderUtils {
* @param context
* {@link Context}.
*/
public static void doCleanupOutdatedHistoryItems(Context context) {
if (BuildConfig.DEBUG)
public static void clearHistory(Context context) {
if (Utils.doLog())
Log.d(CLASSNAME, "doCleanupCache()");
try {
@ -44,12 +45,11 @@ public class HistoryProviderUtils {
* ones.
*/
final long validityInMillis = new Date().getTime()
- (context.getResources().getInteger(
R.integer.afc_pkey_history_validity_in_days_def) * DateUtils.DAY_IN_MILLIS);
- 0;
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, String.format(
"doCleanupCache() - validity = %,d (%s)",
"clearHistory() - validity = %,d (%s)",
validityInMillis, new Date(validityInMillis)));
context.getContentResolver().delete(
HistoryContract.genContentUri(context),
@ -61,5 +61,5 @@ public class HistoryProviderUtils {
* Currently we just ignore it.
*/
}
}// doCleanupOutdatedHistoryItems()
}// clearHistory()
}

View File

@ -8,6 +8,7 @@
package group.pals.android.lib.ui.filechooser.providers.localfile;
import group.pals.android.lib.ui.filechooser.BuildConfig;
import group.pals.android.lib.ui.filechooser.utils.Utils;
import android.content.Context;
import android.net.Uri;
import android.os.Build;
@ -63,7 +64,7 @@ public class FileObserverEx extends FileObserver {
@Override
public void handleMessage(Message msg) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME,
String.format(
"mHandler.handleMessage() >> path = '%s' | what = %,d",
@ -102,7 +103,7 @@ public class FileObserverEx extends FileObserver {
mHandler.sendEmptyMessage(MSG_NOTIFY_CHANGES);
} catch (Throwable t) {
mWatching = false;
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.e(CLASSNAME, "onEvent() >> " + t);
}
}// onEvent()
@ -111,7 +112,7 @@ public class FileObserverEx extends FileObserver {
public void startWatching() {
super.startWatching();
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, String.format("startWatching() >> %s", hashCode()));
mWatching = true;
@ -121,7 +122,7 @@ public class FileObserverEx extends FileObserver {
public void stopWatching() {
super.stopWatching();
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, String.format("stopWatching() >> %s", hashCode()));
mWatching = false;

View File

@ -15,6 +15,7 @@ import group.pals.android.lib.ui.filechooser.providers.basefile.BaseFileContract
import group.pals.android.lib.ui.filechooser.providers.basefile.BaseFileProvider;
import group.pals.android.lib.ui.filechooser.utils.FileUtils;
import group.pals.android.lib.ui.filechooser.utils.TextUtils;
import group.pals.android.lib.ui.filechooser.utils.Utils;
import java.io.File;
import java.io.FileFilter;
@ -68,7 +69,7 @@ public class LocalFileProvider extends BaseFileProvider {
@Override
public int delete(Uri uri, String selection, String[] selectionArgs) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "delete() >> " + uri);
int count = 0;
@ -91,7 +92,7 @@ public class LocalFileProvider extends BaseFileProvider {
mMapInterruption.put(taskId, false);
count = deleteFile(taskId, file, isRecursive);
if (mMapInterruption.get(taskId))
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "delete() >> cancelled...");
mMapInterruption.delete(taskId);
}
@ -118,7 +119,7 @@ public class LocalFileProvider extends BaseFileProvider {
throw new IllegalArgumentException("UNKNOWN URI " + uri);
}
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "delete() >> count = " + count);
if (count > 0)
@ -129,7 +130,7 @@ public class LocalFileProvider extends BaseFileProvider {
@Override
public Uri insert(Uri uri, ContentValues values) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "insert() >> " + uri);
switch (URI_MATCHER.match(uri)) {
@ -179,7 +180,7 @@ public class LocalFileProvider extends BaseFileProvider {
@Override
public Cursor query(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, String.format(
"query() >> uri = %s (%s) >> match = %s", uri,
uri.getLastPathSegment(), URI_MATCHER.match(uri)));
@ -336,7 +337,7 @@ public class LocalFileProvider extends BaseFileProvider {
File dir = extractFile(uri);
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "srcFile = " + dir);
if (!dir.isDirectory() || !dir.canRead())
@ -428,7 +429,7 @@ public class LocalFileProvider extends BaseFileProvider {
try {
if (mMapInterruption.get(taskId)) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "query() >> cancelled...");
return null;
}
@ -557,7 +558,7 @@ public class LocalFileProvider extends BaseFileProvider {
}// accept()
});
} catch (CancellationException e) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "listFiles() >> cancelled... >> " + e);
}
}// listFiles()
@ -618,7 +619,7 @@ public class LocalFileProvider extends BaseFileProvider {
}// compare()
});
} catch (CancellationException e) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "sortFiles() >> cancelled...");
}
}// sortFiles()
@ -742,7 +743,7 @@ public class LocalFileProvider extends BaseFileProvider {
if (uri.getQueryParameter(BaseFile.PARAM_APPEND_NAME) != null)
fileName += "/" + uri.getQueryParameter(BaseFile.PARAM_APPEND_NAME);
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "extractFile() >> " + fileName);
return new File(fileName);

View File

@ -9,6 +9,7 @@ package group.pals.android.lib.ui.filechooser.ui.widget;
import group.pals.android.lib.ui.filechooser.BuildConfig;
import group.pals.android.lib.ui.filechooser.R;
import group.pals.android.lib.ui.filechooser.utils.Utils;
import group.pals.android.lib.ui.filechooser.utils.ui.Ui;
import android.content.Context;
import android.content.res.TypedArray;
@ -217,7 +218,7 @@ public class AfcSearchView extends LinearLayout {
*/
protected void updateViewsVisibility(boolean collapsed,
boolean showSoftKeyboard) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "updateViewsVisibility() >> " + collapsed);
mIconified = collapsed;
@ -385,7 +386,7 @@ public class AfcSearchView extends LinearLayout {
@Override
public void run() {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "mAutoSubmissionRunnable.run()");
mButtonSearch.performClick();
}// run()
@ -404,14 +405,14 @@ public class AfcSearchView extends LinearLayout {
@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME, "beforeTextChanged()");
mAutoSubmissionHandler.removeCallbacksAndMessages(null);
}// beforeTextChanged()
@Override
public void afterTextChanged(Editable s) {
if (BuildConfig.DEBUG)
if (Utils.doLog())
Log.d(CLASSNAME,
"afterTextChanged() >>> delayTimeSubmission = "
+ getDelayTimeSubmission());

View File

@ -37,6 +37,9 @@ public class FileUtils {
Pattern.compile(MimeTypes.REGEX_FILE_TYPE_IMAGES));
MAP_FILE_ICONS.put(R.drawable.afc_file_plain_text,
Pattern.compile(MimeTypes.REGEX_FILE_TYPE_PLAIN_TEXTS));
MAP_FILE_ICONS.put(R.drawable.afc_file_kp2a,
Pattern.compile(MimeTypes.REGEX_FILE_TYPE_KEEPASS2ANDROID));
/*
* APK files are counted before compressed files.

View File

@ -24,6 +24,12 @@ public class MimeTypes {
+ "psc1|psd1|psm1|py|pyc|pyo|r|rb|sdl|sh|tcl|vbs|xpl|ada|adb|ads|"
+ "clj|cls|cob|cbl|cxx|cs|csproj|d|e|el|go|h|hpp|hxx|l|m|url|ini|"
+ "prop|conf|properties|rc|srt|sa?mi|cmml|lrc)$";
/**
* Regular expression for files supported by Keepass2Android.
*/
public static final String REGEX_FILE_TYPE_KEEPASS2ANDROID = "(?si)^.+\\.(kdbx)$";
/**
* Regular expression for HTML files.

View File

@ -7,6 +7,7 @@
package group.pals.android.lib.ui.filechooser.utils;
import group.pals.android.lib.ui.filechooser.BuildConfig;
import android.content.Context;
import android.content.pm.PackageManager;
@ -30,4 +31,12 @@ public class Utils {
return false;
return true;
}// hasPermissions()
public static boolean doLog()
{
return false;
//return BuildConfig.DEBUG; //not working with Mono for Android
}
}