Disable some more reporting mechanisms

This commit is contained in:
SpiritCroc 2020-05-28 10:12:28 +02:00
parent c755c5de0a
commit adaecddb48
4 changed files with 10 additions and 5 deletions

View File

@ -261,6 +261,7 @@ class HomeActivity : VectorBaseActivity(), ToolbarConfigurable {
override fun onOptionsItemSelected(item: MenuItem): Boolean { override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) { when (item.itemId) {
/*
R.id.menu_home_suggestion -> { R.id.menu_home_suggestion -> {
bugReporter.openBugReportScreen(this, true) bugReporter.openBugReportScreen(this, true)
return true return true
@ -269,6 +270,7 @@ class HomeActivity : VectorBaseActivity(), ToolbarConfigurable {
bugReporter.openBugReportScreen(this, false) bugReporter.openBugReportScreen(this, false)
return true return true
} }
*/
R.id.menu_home_filter -> { R.id.menu_home_filter -> {
navigator.openRoomsFiltering(this) navigator.openRoomsFiltering(this)
return true return true

View File

@ -751,7 +751,7 @@ class VectorPreferences @Inject constructor(private val context: Context) {
* @return true if the rage shake is used * @return true if the rage shake is used
*/ */
fun useRageshake(): Boolean { fun useRageshake(): Boolean {
return defaultPrefs.getBoolean(SETTINGS_USE_RAGE_SHAKE_KEY, true) return false; //defaultPrefs.getBoolean(SETTINGS_USE_RAGE_SHAKE_KEY, false)
} }
/** /**

View File

@ -2,6 +2,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" <menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<!--
<item <item
android:id="@+id/menu_home_suggestion" android:id="@+id/menu_home_suggestion"
android:icon="@drawable/ic_material_bug_report" android:icon="@drawable/ic_material_bug_report"
@ -11,6 +12,7 @@
android:id="@+id/menu_home_report_bug" android:id="@+id/menu_home_report_bug"
android:icon="@drawable/ic_material_bug_report" android:icon="@drawable/ic_material_bug_report"
android:title="@string/send_bug_report" /> android:title="@string/send_bug_report" />
-->
<item <item
android:id="@+id/menu_home_filter" android:id="@+id/menu_home_filter"

View File

@ -34,10 +34,11 @@
<im.vector.riotx.core.preference.VectorPreferenceCategory <im.vector.riotx.core.preference.VectorPreferenceCategory
android:key="SETTINGS_RAGE_SHAKE_CATEGORY_KEY" android:key="SETTINGS_RAGE_SHAKE_CATEGORY_KEY"
android:title="@string/settings_rageshake"> android:title="@string/settings_rageshake"
android:enabled="false">
<im.vector.riotx.core.preference.VectorSwitchPreference <im.vector.riotx.core.preference.VectorSwitchPreference
android:defaultValue="true" android:defaultValue="false"
android:key="SETTINGS_USE_RAGE_SHAKE_KEY" android:key="SETTINGS_USE_RAGE_SHAKE_KEY"
android:title="@string/send_bug_report_rage_shake" /> android:title="@string/send_bug_report_rage_shake" />