bug fix, fixed status item layout

This commit is contained in:
nuclearfog 2023-03-19 18:34:41 +01:00
parent 2316582921
commit f9fdd415b6
No known key found for this signature in database
GPG Key ID: 03488A185C476379
2 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,8 @@ public class StatusPreferenceDialog extends Dialog implements OnCheckedChangeLis
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(context, R.array.visibility, android.R.layout.simple_spinner_dropdown_item);
visibilitySelector.setAdapter(adapter);
visibilitySelector.setSelection(0, false);
visibilitySelector.setSelected(false);
AppStyles.setTheme(rootView);
if (!settings.getLogin().getConfiguration().statusVisibilitySupported()) {
statusVisibility.setVisibility(View.GONE);
@ -69,7 +71,7 @@ public class StatusPreferenceDialog extends Dialog implements OnCheckedChangeLis
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
if (view.getId() == R.id.dialog_status_visibility) {
if (parent.getId() == R.id.dialog_status_visibility) {
switch (position) {
case 0:
statusUpdate.setVisibility(StatusUpdate.PUBLIC);

View File

@ -142,6 +142,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/item_status_text_margin"
android:layout_marginTop="@dimen/item_status_layout_margin"
android:layout_marginEnd="@dimen/item_status_text_margin"
android:lines="1"
android:textSize="@dimen/item_status_textsize_button"
@ -166,6 +167,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/item_status_text_margin"
android:layout_marginTop="@dimen/item_status_layout_margin"
android:layout_marginEnd="@dimen/item_status_text_margin"
android:lines="1"
android:textSize="@dimen/item_status_textsize_button"