mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Fix to make notifications not crash in 2.3
This removes the progressbar from the notifications on 2.3, which is much less than ideal. However after blindly debugging for about a week, I couldn't really figure out a way to make custom views in Notifications work across both platforms. So this will have to do until I figure a proper way out.
This commit is contained in:
parent
5396541f4e
commit
1ec9be01f8
2 changed files with 20 additions and 89 deletions
|
|
@ -1,61 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="10dp" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/uploadNotificationIcon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/ic_launcher"
|
||||
android:layout_marginRight="10dp" />
|
||||
|
||||
<LinearLayout android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/uploadNotificationTitle"
|
||||
style="@style/NotificationTitle"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Uploading image to commons"
|
||||
android:singleLine="true"
|
||||
android:marqueeRepeatLimit="marquee_forever"
|
||||
android:scrollHorizontally="true"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
android:ellipsize="marquee"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<ProgressBar
|
||||
android:id="@+id/uploadNotificationProgress"
|
||||
android:layout_width="0px"
|
||||
android:layout_height="fill_parent"
|
||||
android:indeterminate="false"
|
||||
android:indeterminateOnly="false"
|
||||
android:layout_weight="1"
|
||||
style="@style/NotificationProgress" >
|
||||
|
||||
</ProgressBar>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/uploadNotificationsCount"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
style="@style/NotificationText"
|
||||
android:layout_marginLeft="8dp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
Loading…
Add table
Add a link
Reference in a new issue