mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
Fix crash
This commit is contained in:
parent
a55d5b9263
commit
38f3c3cff6
@ -9,7 +9,6 @@ import android.support.annotation.NonNull;
|
|||||||
import android.support.annotation.Nullable;
|
import android.support.annotation.Nullable;
|
||||||
import android.support.v7.app.AlertDialog;
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.support.v7.preference.EditTextPreference;
|
import android.support.v7.preference.EditTextPreference;
|
||||||
import android.support.v7.preference.ListPreference;
|
|
||||||
import android.support.v7.preference.Preference;
|
import android.support.v7.preference.Preference;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
@ -49,9 +48,9 @@ public class ChatsPreferenceFragment extends ListSummaryPreferenceFragment {
|
|||||||
.setOnPreferenceChangeListener(new MediaDownloadChangeListener());
|
.setOnPreferenceChangeListener(new MediaDownloadChangeListener());
|
||||||
findPreference(TextSecurePreferences.MEDIA_DOWNLOAD_ROAMING_PREF)
|
findPreference(TextSecurePreferences.MEDIA_DOWNLOAD_ROAMING_PREF)
|
||||||
.setOnPreferenceChangeListener(new MediaDownloadChangeListener());
|
.setOnPreferenceChangeListener(new MediaDownloadChangeListener());
|
||||||
*/
|
|
||||||
findPreference(TextSecurePreferences.MESSAGE_BODY_TEXT_SIZE_PREF)
|
findPreference(TextSecurePreferences.MESSAGE_BODY_TEXT_SIZE_PREF)
|
||||||
.setOnPreferenceChangeListener(new ListSummaryListener());
|
.setOnPreferenceChangeListener(new ListSummaryListener());
|
||||||
|
*/
|
||||||
|
|
||||||
findPreference(TextSecurePreferences.THREAD_TRIM_NOW)
|
findPreference(TextSecurePreferences.THREAD_TRIM_NOW)
|
||||||
.setOnPreferenceClickListener(new TrimNowClickListener());
|
.setOnPreferenceClickListener(new TrimNowClickListener());
|
||||||
@ -63,7 +62,7 @@ public class ChatsPreferenceFragment extends ListSummaryPreferenceFragment {
|
|||||||
findPreference(TextSecurePreferences.BACKUP_NOW)
|
findPreference(TextSecurePreferences.BACKUP_NOW)
|
||||||
.setOnPreferenceClickListener(new BackupCreateListener());
|
.setOnPreferenceClickListener(new BackupCreateListener());
|
||||||
|
|
||||||
initializeListSummary((ListPreference) findPreference(TextSecurePreferences.MESSAGE_BODY_TEXT_SIZE_PREF));
|
// initializeListSummary((ListPreference) findPreference(TextSecurePreferences.MESSAGE_BODY_TEXT_SIZE_PREF));
|
||||||
|
|
||||||
EventBus.getDefault().register(this);
|
EventBus.getDefault().register(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user