Adds in settings
This commit is contained in:
parent
ecb4d2255d
commit
3b6159ced5
|
@ -94,6 +94,8 @@ public class SettingsFragment extends Fragment {
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
boolean show_error_messages = sharedpreferences.getBoolean(Helper.SET_SHOW_ERROR_MESSAGES, true);
|
||||
final CheckBox set_show_error_messages = (CheckBox) rootView.findViewById(R.id.set_show_error_messages);
|
||||
set_show_error_messages.setChecked(show_error_messages);
|
||||
|
@ -182,6 +184,20 @@ public class SettingsFragment extends Fragment {
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
boolean multiaccount_actions = sharedpreferences.getBoolean(Helper.SET_ALLOW_CROSS_ACTIONS, true);
|
||||
final CheckBox set_multiaccount_actions = (CheckBox) rootView.findViewById(R.id.set_multiaccount_actions);
|
||||
set_multiaccount_actions.setChecked(multiaccount_actions);
|
||||
|
||||
set_multiaccount_actions.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
SharedPreferences.Editor editor = sharedpreferences.edit();
|
||||
editor.putBoolean(Helper.SET_ALLOW_CROSS_ACTIONS, set_multiaccount_actions.isChecked());
|
||||
editor.apply();
|
||||
}
|
||||
});
|
||||
|
||||
boolean display_local = sharedpreferences.getBoolean(Helper.SET_DISPLAY_LOCAL, true);
|
||||
final CheckBox set_display_local = (CheckBox) rootView.findViewById(R.id.set_display_local);
|
||||
set_display_local.setChecked(display_local);
|
||||
|
|
|
@ -46,6 +46,12 @@
|
|||
android:text="@string/set_share_validation_fav"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_multiaccount_actions"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/set_multiaccount_actions"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_show_error_messages"
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -46,6 +46,12 @@
|
|||
android:text="@string/set_share_validation_fav"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_multiaccount_actions"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/set_multiaccount_actions"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_show_error_messages"
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -422,4 +422,5 @@
|
|||
<string name="thanks_text">Danke an Stéphane für das Logo.</string>
|
||||
|
||||
<string name="thanks_text_dev">Danke an:</string>
|
||||
<string name="set_multiaccount_actions">Erlauben Interaktionen zwischen den accounts?</string>
|
||||
</resources>
|
||||
|
|
|
@ -307,6 +307,7 @@
|
|||
<string name="set_header_picture_overlay">Choisissez une image d\'entête</string>
|
||||
<string name="set_preview_reply">Afficher le nombre de réponses sur la page d\'accueil</string>
|
||||
<string name="set_preview_reply_pp">Afficher les images de profil ?</string>
|
||||
<string name="set_multiaccount_actions">Permettre les interactions entre comptes ?</string>
|
||||
<string name="note_no_space">Vous avez atteint les 160 caractères autorisés !</string>
|
||||
<string name="username_no_space">Vous avez atteint les 30 caractères autorisés !</string>
|
||||
<string name="settings_title_hour">Plage horaire pour les notifications :</string>
|
||||
|
|
|
@ -313,6 +313,7 @@
|
|||
<string name="set_header_picture_overlay">Choose a header picture</string>
|
||||
<string name="set_preview_reply">Display the number of replies in home timeline</string>
|
||||
<string name="set_preview_reply_pp">Display profile pictures?</string>
|
||||
<string name="set_multiaccount_actions">Allow interactions between accounts?</string>
|
||||
<string name="note_no_space">You have reached the 160 characters allowed!</string>
|
||||
<string name="username_no_space">You have reached the 30 characters allowed!</string>
|
||||
|
||||
|
|
Loading…
Reference in New Issue