android - Why does my app close when swiping tabs in ViewPager? (Only on Huawei devices) -


this happens on huawei devices (except honor 5x). app (music player): https://play.google.com/store/apps/details?id=com.ms.musicplayer

code viewpager , tabs:

// viewpager setup         viewpager = (viewpager)findviewbyid(r.id.pager);          // tabs         tablayout = (tablayout)findviewbyid(r.id.sliding_tabs);          viewpager.setadapter(new myadapter(fragmentmanager));          if (tablayout != null) {             tablayout.setupwithviewpager(viewpager);         } 

xml tabs:

<android.support.design.widget.tablayout             android:id="@+id/sliding_tabs"             android:layout_below="@id/toolbar"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:elevation="4dp"              app:tabindicatorheight="4dp"             android:overscrollmode="ifcontentscrolls"              app:tabtextcolor="@color/transparetwhitefifty"             app:tabselectedtextcolor="@color/white"             android:background="@color/tabbgcolor"             android:textcolor="@color/whitefifty"             app:tabindicatorcolor="@color/white"             app:tabmode="scrollable" /> 

i have checked phone other music players viewpager , there's no problem.


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -