Attempt to workaround recycler view / accessibility crash

This commit is contained in:
M66B 2019-08-11 10:41:58 +02:00
parent 703f357071
commit 9635fd58f6
2 changed files with 4 additions and 1 deletions

View File

@ -168,7 +168,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
def appcompat_version = "1.1.0-rc01"
def recyclerview_version = "1.1.0-beta01"
def recyclerview_version = "1.1.0-beta02"
def coordinatorlayout_version = "1.1.0-beta01"
def constraintlayout_version = "2.0.0-beta2"
def material_version = "1.1.0-alpha07"

View File

@ -30,14 +30,17 @@ import androidx.recyclerview.widget.RecyclerView;
public class FixedRecyclerView extends RecyclerView {
public FixedRecyclerView(@NonNull Context context) {
super(context);
setAccessibilityDelegateCompat(null);
}
public FixedRecyclerView(@NonNull Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
setAccessibilityDelegateCompat(null);
}
public FixedRecyclerView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
setAccessibilityDelegateCompat(null);
}
@Override