Add search and watch history (#626)

Add search and watch history

* Make MainActicity a single task
* Remove some casting
* SearchFragment: start searching when created with query
* Handle settings change in onResume
* History: Log pop up and background playback
* History: Add swipe to remove functionallity
* Enable history by default
* Use stream item
* Store more information about the stream
* Integrate history database into AppDatabase
* Remove redundant casts
* Re-enable date converters
* History: Use Rx Java and run DB in background
 * Also make HistoryDAO extend BasicDAO
* History: RX-ify swipe to remove
* Sort history entries by creation date
* History: Set toolbar title
* Don't repeat history entries
  * Introduced setters so we can update entries in the database
  * If the latest entry has the same (main) values, just update it
This commit is contained in:
Cyril Müller 2017-08-12 06:50:25 +02:00 committed by Mauricio Colli
parent 09159ec245
commit c0515de6b7
37 changed files with 1470 additions and 33 deletions

View file

@ -188,6 +188,17 @@
android:summary="@string/show_search_suggestions_summary"
android:title="@string/show_search_suggestions_title"/>
<CheckBoxPreference
android:defaultValue="true"
android:key="@string/enable_search_history_key"
android:title="@string/enable_search_history_title"
android:summary="@string/enable_search_history_summary"/>
<CheckBoxPreference
android:defaultValue="true"
android:key="@string/enable_watch_history_key"
android:title="@string/enable_watch_history_title"
android:summary="@string/enable_watch_history_summary"/>
<!--
<CheckBoxPreference
android:key="@string/use_tor_key"
@ -195,6 +206,5 @@
android:summary="@string/use_tor_summary"
android:defaultValue="false"/>
-->
</PreferenceCategory>
</PreferenceScreen>