Temporary remove setting for automatically jump to commands tab to prevent crash

This commit is contained in:
Arne 2024-10-13 18:25:05 +02:00
parent a9e75c959e
commit 648c8d9cfe
2 changed files with 4 additions and 6 deletions

View file

@ -1712,15 +1712,11 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
}
public int getCurrentTab() {
if (xmppConnectionService != null && xmppConnectionService.getBooleanPreference("jump_to_commands_tab", R.bool.jump_to_commands_tab)) {
if (mCurrentTab >= 0) return mCurrentTab;
if (mCurrentTab >= 0) return mCurrentTab;
if (!isRead(null) || getContact().resourceWhichSupport(Namespace.COMMANDS) == null) {
return 0;
}
return 1;
} else return 0;
return 1;
}
public void refreshSessions() {

View file

@ -198,12 +198,14 @@
android:key="follow_thread_in_channel"
android:summary="@string/pref_follow_thread_in_channel_summary"
android:title="@string/pref_follow_thread_in_channel" />
<!--
<SwitchPreferenceCompat
android:defaultValue="@bool/jump_to_commands_tab"
android:icon="@drawable/ic_open_with_24dp"
android:key="jump_to_commands_tab"
android:summary="@string/pref_jump_to_commands_tab_summary"
android:title="@string/pref_jump_to_commands_tab" />
-->
<SwitchPreferenceCompat
android:icon="@drawable/ic_mood_24dp"
android:defaultValue="@bool/message_autocomplete"