mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-31 11:25:03 +01:00
bug fix, fixed status item layout
This commit is contained in:
parent
2316582921
commit
f9fdd415b6
@ -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);
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user