Fixes autocomplete list getting cut off in the composer if the user is using an app or launcher that hides the status bar.

main
Vavassor 8 years ago
parent 40c287937f
commit 801ae3e7e0
  1. 8
      app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java
  2. 1
      app/src/main/res/layout/activity_compose.xml
  3. 1
      app/src/main/res/layout/item_autocomplete.xml

@ -64,6 +64,7 @@ import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.webkit.MimeTypeMap;
import android.widget.ArrayAdapter;
import android.widget.Button;
@ -1369,7 +1370,8 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
return resultList.get(index);
}
@Override @NonNull
@Override
@NonNull
public Filter getFilter() {
return new Filter() {
@Override
@ -1399,8 +1401,8 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
};
}
@Override @NonNull
@Override
@NonNull
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
View view = convertView;

@ -64,6 +64,7 @@
android:hint="@string/hint_compose"
android:inputType="text|textMultiLine|textCapSentences"
android:dropDownWidth="wrap_content"
android:dropDownHeight="58dp"
android:completionThreshold="2" />
<HorizontalScrollView

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"

Loading…
Cancel
Save