backlist feature
This commit is contained in:
37
app/src/main/res/layout/apps_adapter_view.xml
Normal file
37
app/src/main/res/layout/apps_adapter_view.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@android:id/icon1"
|
||||
android:layout_marginEnd="16dp"
|
||||
tools:src="@mipmap/ic_launcher"
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_alignBottom="@+id/include"
|
||||
android:layout_alignParentTop="true" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:id="@android:id/text1"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
||||
tools:text="App name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
<TextView
|
||||
android:id="@android:id/text2"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
||||
tools:text="Package name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
38
app/src/main/res/layout/blacklist_frag.xml
Normal file
38
app/src/main/res/layout/blacklist_frag.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
tools:listitem="@android:layout/simple_list_item_2"
|
||||
android:clipToPadding="false"
|
||||
android:paddingBottom="56dp"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"
|
||||
android:id="@+id/blacklistList_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/blacklistList_emptyView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="@string/blacklist_list_empty" />
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/blacklistList_fab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:contentDescription="@string/fab_cd_create_blacklist_item"
|
||||
android:src="@drawable/ic_action_add"
|
||||
app:fabSize="normal" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -15,21 +15,22 @@
|
||||
<string name="main_notification_details_title"><b>Title:</b> %1$s</string>
|
||||
<string name="main_notification_details_message"><b>Message:</b> %1$s</string>
|
||||
<string name="main_notification_details_button_app_info">App Info</string>
|
||||
<string name="main_notification_details_button_ok">OK</string>
|
||||
<string name="main_notification_details_button_ok">@string/ok</string>
|
||||
|
||||
<string name="pref_category_notification_settings">Notification Settings</string>
|
||||
<string name="pref_category_support">Support</string>
|
||||
<string name="pref_logging_enabled_title">Notification Logging</string>
|
||||
<string name="pref_logging_enabled_summary">Enable/Disable notification logging</string>
|
||||
<string name="pref_blacklist_title">Blacklist</string>
|
||||
<string name="pref_blacklist_summary">Exclude apps from being logged</string>
|
||||
<string name="pref_blacklist_summary_empty">Exclude apps from being logged</string>
|
||||
<string name="pref_blacklist_summary_filled"><b>%1$s</b> apps blacklisted.</string>
|
||||
<string name="pref_clear_database_title">Clear database</string>
|
||||
<string name="pref_clear_database_summary">Remove all logged notifications</string>
|
||||
<string name="pref_export_title">Export to sdcard</string>
|
||||
<string name="pref_about_title">About</string>
|
||||
<string name="pref_clear_database_dialog_title">Clear database</string>
|
||||
<string name="pref_clear_database_dialog_message">Delete all logged notifications?</string>
|
||||
<string name="pref_clear_database_dialog_negative">Cancel</string>
|
||||
<string name="pref_clear_database_dialog_negative">@string/cancel</string>
|
||||
<string name="pref_clear_database_dialog_positive">Yes</string>
|
||||
<string name="pref_clear_database_snackbar_cleared">Database cleared.</string>
|
||||
|
||||
@@ -57,13 +58,20 @@
|
||||
<string name="notification_info_dialog_app_info_error">Failed to display app info.</string>
|
||||
<string name="menu_item_filter">Filter</string>
|
||||
<string name="menu_item_clear_filter">Clear filter</string>
|
||||
<string name="filter_dialog_ok">OK</string>
|
||||
<string name="filter_dialog_cancel">Cancel</string>
|
||||
<string name="filter_dialog_ok">@string/ok</string>
|
||||
<string name="filter_dialog_cancel">@string/cancel</string>
|
||||
<string name="filter_dialog_title">Filter</string>
|
||||
<string name="notification_filter_dialog_title">Title</string>
|
||||
<string name="notification_filter_dialog_message">Message</string>
|
||||
<string name="notification_filter_dialog_application_name">Application name</string>
|
||||
<string name="notification_filter_dialog_package_name">Package name</string>
|
||||
<string name="blacklist_list_empty">No application is blacklisted.</string>
|
||||
<string name="fab_cd_create_blacklist_item">FAB: Create new blacklist item</string>
|
||||
<string name="blacklist_add_dialog_title">Choose app to blacklist</string>
|
||||
<string name="blacklist_dialog_remove_title">Remove from blacklist</string>
|
||||
<string name="blacklist_fragment_remove_message">Remove %s from blacklist?</string>
|
||||
<string name="ok">OK</string>
|
||||
<string name="cancel">Cancel</string>
|
||||
|
||||
<string-array name="create_categories">
|
||||
<item>Alarm</item>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
android:title="@string/pref_logging_enabled_title" />
|
||||
<Preference
|
||||
android:key="pref_blacklist"
|
||||
android:summary="@string/pref_blacklist_summary"
|
||||
android:summary="@string/pref_blacklist_summary_empty"
|
||||
android:title="@string/pref_blacklist_title" />
|
||||
<Preference
|
||||
android:key="pref_clear_database"
|
||||
|
||||
Reference in New Issue
Block a user