mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-15 14:12:21 +01:00
Temporary remove setting for automatically jump to commands tab to prevent crash
This commit is contained in:
parent
a9e75c959e
commit
648c8d9cfe
2 changed files with 4 additions and 6 deletions
|
@ -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() {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue