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

This commit is contained in:
Vavassor 2017-06-26 15:38:04 -04:00
parent 7d7d5864d4
commit c5c6e8205a
3 changed files with 6 additions and 4 deletions

View file

@ -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;

View file

@ -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

View file

@ -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"