App Bundle. Why layout expansion crashes on devices with Android 6.0.1?

0

We just deployed our app in App Bundle format to Google Play. Our user base is 1.2 MAU. No issues for most users. Except a number of devices with Android 6.0.1 on board. These devices crash mercilessly while trying to expand a layout for Notification.

Any ideas why the crash may happen on these devices?

Most devices are by Wileyfox manufacturer. However there are 5 different models from Samsung, including these. Galaxy Ace3 Galaxy A5

The crash

Fatal Exception: android.app.RemoteServiceException Bad notification posted from package yo.app.free: Couldn't expand RemoteViews for: StatusBarNotification(pkg=yo.app.free user=UserHandle{0} id=30 tag=null score=10 key=0|yo.app.free|30|null|10097: Notification(pri=1 contentView=yo.app.free/0x7f0d0142 vibrate=null sound=null defaults=0x0 flags=0x2 color=0x00000000 category=status vis=PUBLIC))

The layout of our Notification.

<?xml version="1.0" encoding="utf-8"?>
    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/notification_layout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:gravity="center"
    >

	<ImageView
		android:id="@+id/background"
		android:layout_width="fill_parent"
		android:layout_height="fill_parent"
		android:cropToPadding="true"
		android:scaleType="fitXY"
		tools:ignore="ContentDescription" >
	</ImageView>

    <LinearLayout
        android:id="@+id/content"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:gravity="center_vertical"
        android:orientation="horizontal"
	>

		<LinearLayout
			android:id="@+id/left_container"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_alignParentStart="true"
			android:layout_alignParentLeft="true"

		>


			<FrameLayout
				android:id="@+id/weather_icon_container"
				android:layout_width="wrap_content"
				android:layout_height="64dp"
				android:orientation="vertical"
				android:paddingBottom="8dp"
				android:paddingStart="4dp"
				android:paddingEnd="4dp"
				android:paddingTop="8dp"
				>

				<ImageView
					android:id="@+id/weather_icon_background"
					android:layout_width="fill_parent"
					android:layout_height="fill_parent"
					android:cropToPadding="true"
					tools:ignore="ContentDescription"
					>
				</ImageView>

				<ImageView
					android:id="@+id/weather_icon"
					android:layout_width="48dp"
					android:layout_height="48dp"
					android:layout_centerInParent="true"
					android:layout_gravity="center"
					android:contentDescription="image"
					android:gravity="center"
					tools:src="@drawable/ic_yowindow"
				/>
			</FrameLayout>

			<TextView
				android:id="@+id/temperature"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_marginStart="0dp"
				android:layout_marginLeft="0dp"
				android:layout_marginEnd="4dp"
				android:layout_marginRight="4dp"
				android:fontFamily="sans-serif-light"
				android:paddingTop="4dp"
				android:gravity="center"
				android:lines="1"
				android:text=""
				android:textSize="38dp"
				style="@style/NotificationText"
				tools:ignore="HardcodedText,SpUsage,UnusedAttribute"
				tools:text="99 C"
				 />
		</LinearLayout>>



		<LinearLayout
		    android:id="@+id/right_container"
            android:layout_weight="1"
		    android:layout_width="0dp"
		    android:layout_height="wrap_content"
		    android:gravity="center"
		    android:orientation="vertical">

		    <TextView
		        android:id="@+id/top"
		        android:layout_width="wrap_content"
		        android:layout_height="wrap_content"
		        android:layout_gravity="start"
		        android:ellipsize="marquee"
		        android:marqueeRepeatLimit="marquee_forever"
		        android:singleLine="true"
		        android:text=""
				style="@style/NotificationTitle"
				tools:ignore="HardcodedText,SpUsage"
                tools:text="Облачно с прояснениями."
                />

		    <TextView
		        android:id="@+id/bottom"
		        android:layout_width="wrap_content"
		        android:layout_height="wrap_content"
		        android:layout_gravity="start"
		        android:ellipsize="marquee"
		        android:marqueeRepeatLimit="marquee_forever"
		        android:singleLine="true"
		        android:text=""
				style="@style/NotificationText"
				tools:ignore="HardcodedText,SpUsage"
                tools:text="Ветер 6 м/с(С3)"/>
		</LinearLayout>

        <LinearLayout
            android:id="@+id/configure"
            android:layout_width="32dp"
            android:layout_height="match_parent"
            android:orientation="vertical"
            android:gravity="center"
            >

            <ImageView
                android:src="@drawable/ic_settings_grey600_24dp"
                android:layout_width="16dp"
                android:layout_height="16dp" />
        </LinearLayout>

	</LinearLayout>
</FrameLayout>

android
android-layout
crash
android-app-bundle
android-6.0.1-marshmallow
asked on Stack Overflow May 9, 2019 by Pavel • edited May 9, 2019 by Levente Takács

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0