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:
parent
40c287937f
commit
801ae3e7e0
@ -64,6 +64,7 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
import android.view.WindowManager;
|
||||||
import android.webkit.MimeTypeMap;
|
import android.webkit.MimeTypeMap;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
@ -1369,7 +1370,8 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
|
|||||||
return resultList.get(index);
|
return resultList.get(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override @NonNull
|
@Override
|
||||||
|
@NonNull
|
||||||
public Filter getFilter() {
|
public Filter getFilter() {
|
||||||
return new Filter() {
|
return new Filter() {
|
||||||
@Override
|
@Override
|
||||||
@ -1399,8 +1401,8 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFragm
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Override @NonNull
|
@NonNull
|
||||||
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
|
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
|
||||||
View view = convertView;
|
View view = convertView;
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@
|
|||||||
android:hint="@string/hint_compose"
|
android:hint="@string/hint_compose"
|
||||||
android:inputType="text|textMultiLine|textCapSentences"
|
android:inputType="text|textMultiLine|textCapSentences"
|
||||||
android:dropDownWidth="wrap_content"
|
android:dropDownWidth="wrap_content"
|
||||||
|
android:dropDownHeight="58dp"
|
||||||
android:completionThreshold="2" />
|
android:completionThreshold="2" />
|
||||||
|
|
||||||
<HorizontalScrollView
|
<HorizontalScrollView
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
Loading…
Reference in New Issue
Block a user