@ -1278,8 +1278,11 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
holder . binding . buttonEmojiOne . setVisibility ( View . VISIBLE ) ;
if ( extraFeatures ) {
boolean displayLocalOnly = sharedpreferences . getBoolean ( context . getString ( R . string . SET_DISPLAY_LOCAL_ONLY ) + MainActivity . currentUserID + MainActivity . currentInstance , true ) ;
holder . binding . buttonTextFormat . setVisibility ( View . VISIBLE ) ;
holder . binding . buttonLocalOnly . setVisibility ( View . VISIBLE ) ;
if ( displayLocalOnly ) {
holder . binding . buttonLocalOnly . setVisibility ( View . VISIBLE ) ;
}
holder . binding . buttonTextFormat . setOnClickListener ( v - > {
AlertDialog . Builder builder = new AlertDialog . Builder ( context , Helper . dialogStyle ( ) ) ;
builder . setTitle ( context . getString ( R . string . post_format ) ) ;
@ -1313,8 +1316,8 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
String [ ] labelArr = res . getStringArray ( R . array . set_local_only ) ;
int selection = 0 ;
boolean localOnly = sharedpreferences . getBoolean ( context . getString ( R . string . SET_ LOCAL_ONLY) + account . user_id + account . instance , false ) ;
if ( statusDraft . local_only | | localOnly ) {
int localOnly = sharedpreferences . getInt ( context . getString ( R . string . SET_ COMPOSE_ LOCAL_ONLY) + account . user_id + account . instance , 0 ) ;
if ( statusDraft . local_only | | localOnly = = 1 ) {
selection = 1 ;
}
builder . setSingleChoiceItems ( labelArr , selection , null ) ;