Баг swiperefsresh, WebView на сайтах ВКонтакте и Google Карты

Всем доброго времени суток. Как я могу решить следующую проблему, во ВКонтакте, а именно диалогах я не могу прокрутить вверх и посмотреть все сообщения. Вместо этого срабатывает SwipeRefreshLayout и перезагружает страницу. Такая же песня и в Google Картах, но уже тогда, когда хочешь приблизить объект, город, страну и т.д..

Экран приложения

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <FrameLayout
        android:id="@+id/content"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
            android:id="@+id/swiperefresh"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <WebView
                android:id="@+id/web"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/>

        </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

        <ProgressBar
            android:id="@+id/progressBar"
            style="?android:attr/progressBarStyleHorizontal"
            android:layout_width="match_parent"
            android:layout_height="1.5dp"
            android:layout_gravity="top""
            android:background="?android:colorPrimary"
            android:backgroundTint="?android:colorPrimary"/>

    </FrameLayout>

</RelativeLayout>

Обработка свайпа

 // В onCreate
    swipeRefreshLayout = findViewById(R.id.swiperefresh);
    swipeRefreshLayout.setColorSchemeResources(R.color.colorAccent);
    swipeRefreshLayout.setOnRefreshListener(() -> {
            mWeb.reload();
        });
    // После onCreate
    public void reload(View view)
    {
        mWeb.reload();
    }

Буду благодарен за любую помощь. Спасибо!


Ответы (0 шт):