updated icons & preview banner
|
@ -1130,19 +1130,6 @@ public final class TwidereDataProvider extends ContentProvider implements Consta
|
|||
return c;
|
||||
}
|
||||
|
||||
private Bitmap getProfileImageForNotification(final String profileImageUrl) {
|
||||
final Context context = getContext();
|
||||
assert context != null;
|
||||
final Resources res = context.getResources();
|
||||
final int w = res.getDimensionPixelSize(android.R.dimen.notification_large_icon_width);
|
||||
final int h = res.getDimensionPixelSize(android.R.dimen.notification_large_icon_height);
|
||||
final File profile_image_file = mImagePreloader.getCachedImageFile(profileImageUrl);
|
||||
final Bitmap profile_image = profile_image_file != null && profile_image_file.isFile() ? BitmapFactory
|
||||
.decodeFile(profile_image_file.getPath()) : null;
|
||||
if (profile_image != null) return Bitmap.createScaledBitmap(profile_image, w, h, true);
|
||||
return Bitmap.createScaledBitmap(BitmapFactory.decodeResource(res, R.mipmap.ic_launcher), w, h, true);
|
||||
}
|
||||
|
||||
private Cursor getUnreadCountsCursor() {
|
||||
final MatrixCursor c = new MatrixCursor(UnreadCounts.MATRIX_COLUMNS);
|
||||
return c;
|
||||
|
|
|
@ -110,7 +110,7 @@ class ParcelableUserLoader(
|
|||
} else {
|
||||
return SingleResponse()
|
||||
}
|
||||
val cur = resolver.query(CachedUsers.CONTENT_URI, CachedUsers.COLUMNS, where.sql,
|
||||
resolver.query(CachedUsers.CONTENT_URI, CachedUsers.COLUMNS, where.sql,
|
||||
whereArgs, null)?.let { cur ->
|
||||
try {
|
||||
cur.moveToFirst()
|
||||
|
|
|
@ -89,7 +89,7 @@ class StatusViewHolder(private val adapter: IStatusesAdapter<*>, itemView: View)
|
|||
profileImageView.visibility = if (profileImageEnabled) View.VISIBLE else View.GONE
|
||||
statusContentUpperSpace.visibility = View.VISIBLE
|
||||
|
||||
profileImageView.setImageResource(R.mipmap.ic_launcher)
|
||||
profileImageView.setImageResource(R.drawable.ic_profile_image_twidere)
|
||||
nameView.setName(Constants.TWIDERE_PREVIEW_NAME)
|
||||
nameView.setScreenName("@" + Constants.TWIDERE_PREVIEW_SCREEN_NAME)
|
||||
nameView.updateText(adapter.bidiFormatter)
|
||||
|
@ -115,7 +115,7 @@ class StatusViewHolder(private val adapter: IStatusesAdapter<*>, itemView: View)
|
|||
statusContentLowerSpace.visibility = if (showCardActions) View.GONE else View.VISIBLE
|
||||
quotedMediaPreview.visibility = View.GONE
|
||||
quotedMediaLabel.visibility = View.GONE
|
||||
mediaPreview.displayMedia(R.drawable.nyan_stars_background)
|
||||
mediaPreview.displayMedia(R.drawable.featured_graphics)
|
||||
extraTypeView.setImageResource(R.drawable.ic_action_gallery)
|
||||
}
|
||||
|
||||
|
|
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 18 KiB |
|
@ -197,7 +197,7 @@
|
|||
app:sivBackgroundColor="?android:colorBackground"
|
||||
app:sivBorder="true"
|
||||
app:sivBorderWidth="@dimen/line_width_compose_account_profile_image"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
</org.mariotaku.twidere.view.SquareFrameLayout>
|
||||
|
||||
<org.mariotaku.twidere.view.BadgeView
|
||||
|
|
|
@ -34,6 +34,6 @@
|
|||
android:layout_gravity="center"
|
||||
app:sivBorder="true"
|
||||
app:sivBorderWidth="1.5dp"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
android:layout_height="@dimen/profile_image_size_activity_small"
|
||||
android:layout_margin="2dp"
|
||||
android:contentDescription="@string/profile_image"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
<org.mariotaku.twidere.view.ProfileImageView
|
||||
android:id="@+id/activity_profile_image_1"
|
||||
|
@ -71,7 +71,7 @@
|
|||
android:layout_height="@dimen/profile_image_size_activity_small"
|
||||
android:layout_margin="2dp"
|
||||
android:contentDescription="@string/profile_image"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
<org.mariotaku.twidere.view.ProfileImageView
|
||||
android:id="@+id/activity_profile_image_3"
|
||||
|
@ -89,7 +89,7 @@
|
|||
android:layout_height="@dimen/profile_image_size_activity_small"
|
||||
android:layout_margin="2dp"
|
||||
android:contentDescription="@string/profile_image"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
<org.mariotaku.twidere.view.BadgeView
|
||||
android:id="@+id/activity_profile_image_more_number"
|
||||
|
@ -99,7 +99,7 @@
|
|||
android:layout_margin="2dp"
|
||||
android:gravity="center"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
tools:src="@mipmap/ic_launcher_hondajojo"
|
||||
tools:src="@drawable/ic_profile_image_twidere"
|
||||
tools:text="11"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
android:layout_marginRight="@dimen/element_spacing_normal"
|
||||
android:contentDescription="@string/profile_image"
|
||||
android:scaleType="fitCenter"
|
||||
tools:src="@mipmap/ic_launcher"
|
||||
tools:src="@drawable/ic_profile_image_twidere"
|
||||
android:contextClickable="true"/>
|
||||
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
android:focusable="false"
|
||||
app:sivBorder="true"
|
||||
app:sivBorderWidth="2dp"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
<org.mariotaku.twidere.view.ExtendedViewPager
|
||||
android:id="@+id/otherAccountsList"
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
android:scaleType="centerCrop"
|
||||
app:sivBorder="true"
|
||||
app:sivBorderWidth="1dp"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/profileType"
|
||||
|
|
|
@ -406,7 +406,7 @@
|
|||
android:layout_marginStart="@dimen/element_spacing_normal"
|
||||
android:contentDescription="@string/profile_image"
|
||||
android:visibility="gone"
|
||||
tools:src="@mipmap/ic_launcher"
|
||||
tools:src="@drawable/ic_profile_image_twidere"
|
||||
tools:visibility="visible"/>
|
||||
|
||||
<org.mariotaku.twidere.view.BoundsImageView
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
android:foregroundGravity="center"
|
||||
android:scaleType="centerCrop"
|
||||
tools:ignore="DuplicateIncludedIds"
|
||||
tools:src="@drawable/nyan_stars_background"/>
|
||||
tools:src="@drawable/featured_graphics"/>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/media_preview_progress"
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
android:layout_toRightOf="@+id/drag_handle"
|
||||
android:contentDescription="@string/your_profile_image"
|
||||
android:scaleType="fitCenter"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/account_type"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
android:layout_height="@dimen/icon_size_list_item_small"
|
||||
android:contentDescription="@string/icon"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -71,5 +71,5 @@
|
|||
android:layout_weight="0"
|
||||
android:contentDescription="@string/profile_image"
|
||||
android:scaleType="fitCenter"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
</LinearLayout>
|
|
@ -83,7 +83,7 @@
|
|||
android:layout_marginRight="@dimen/element_spacing_normal"
|
||||
android:contentDescription="@string/profile_image"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@mipmap/ic_launcher"
|
||||
tools:src="@drawable/ic_profile_image_twidere"
|
||||
tools:visibility="visible"/>
|
||||
|
||||
<org.mariotaku.twidere.view.BoundsImageView
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
android:layout_height="@dimen/element_size_quick_search_bar_item_icon"
|
||||
android:contentDescription="@string/icon"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
android:layout_height="@dimen/icon_size_card_list_item"
|
||||
android:layout_centerInParent="true"
|
||||
android:contentDescription="@string/profile_image"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/profileType"
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
android:layout_marginRight="@dimen/element_spacing_normal"
|
||||
android:contentDescription="@string/profile_image"
|
||||
android:scaleType="fitCenter"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -33,6 +33,6 @@
|
|||
android:layout_gravity="center"
|
||||
android:contentDescription="@string/profile_image"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@mipmap/ic_launcher"/>
|
||||
tools:src="@drawable/ic_profile_image_twidere"/>
|
||||
|
||||
</org.mariotaku.twidere.view.SquareFrameLayout>
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |