Allow polls for private messages
This commit is contained in:
parent
9b102a87a6
commit
fc966d4964
|
@ -1517,11 +1517,11 @@ public class TootActivity extends BaseActivity implements OnPostActionInterface,
|
||||||
toot_it.setEnabled(true);
|
toot_it.setEnabled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( poll != null && visibility.equals("direct")){
|
/*if( poll != null && visibility.equals("direct")){
|
||||||
Toasty.error(getApplicationContext(),getString(R.string.poll_not_private),Toast.LENGTH_LONG).show();
|
Toasty.error(getApplicationContext(),getString(R.string.poll_not_private),Toast.LENGTH_LONG).show();
|
||||||
toot_it.setEnabled(true);
|
toot_it.setEnabled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, android.content.Context.MODE_PRIVATE);
|
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, android.content.Context.MODE_PRIVATE);
|
||||||
boolean split_toot = sharedpreferences.getBoolean(Helper.SET_AUTOMATICALLY_SPLIT_TOOTS, false);
|
boolean split_toot = sharedpreferences.getBoolean(Helper.SET_AUTOMATICALLY_SPLIT_TOOTS, false);
|
||||||
int split_toot_size = sharedpreferences.getInt(Helper.SET_AUTOMATICALLY_SPLIT_TOOTS_SIZE, Helper.SPLIT_TOOT_SIZE);
|
int split_toot_size = sharedpreferences.getInt(Helper.SET_AUTOMATICALLY_SPLIT_TOOTS_SIZE, Helper.SPLIT_TOOT_SIZE);
|
||||||
|
|
|
@ -1347,8 +1347,6 @@ public class NotificationsListAdapter extends RecyclerView.Adapter implements On
|
||||||
//Poll
|
//Poll
|
||||||
LinearLayout poll_container, single_choice, multiple_choice, rated;
|
LinearLayout poll_container, single_choice, multiple_choice, rated;
|
||||||
RadioGroup radio_group;
|
RadioGroup radio_group;
|
||||||
RadioButton r_choice_1, r_choice_2, r_choice_3, r_choice_4;
|
|
||||||
CheckBox c_choice_1, c_choice_2, c_choice_3, c_choice_4;
|
|
||||||
HorizontalBar choices;
|
HorizontalBar choices;
|
||||||
TextView number_votes, remaining_time;
|
TextView number_votes, remaining_time;
|
||||||
Button submit_vote, refresh_poll;
|
Button submit_vote, refresh_poll;
|
||||||
|
|
|
@ -355,8 +355,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
||||||
//Poll
|
//Poll
|
||||||
LinearLayout poll_container, single_choice, multiple_choice, rated;
|
LinearLayout poll_container, single_choice, multiple_choice, rated;
|
||||||
RadioGroup radio_group;
|
RadioGroup radio_group;
|
||||||
RadioButton r_choice_1, r_choice_2, r_choice_3, r_choice_4;
|
|
||||||
CheckBox c_choice_1, c_choice_2, c_choice_3, c_choice_4;
|
|
||||||
HorizontalBar choices;
|
HorizontalBar choices;
|
||||||
TextView number_votes, remaining_time;
|
TextView number_votes, remaining_time;
|
||||||
Button submit_vote, refresh_poll;
|
Button submit_vote, refresh_poll;
|
||||||
|
|
Loading…
Reference in New Issue