fixed crashes on ICS devices

improved profile image background
This commit is contained in:
Mariotaku Lee 2017-08-13 17:46:18 +08:00
parent 8efe2b9472
commit e51db26094
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
3 changed files with 7 additions and 5 deletions

View File

@ -409,7 +409,7 @@ class HomeActivity : BaseActivity(), OnClickListener, OnPageChangeListener, Supp
fragment.requestApplyInsets()
}
homeMenu.setChildInsets(insets.unwrapped, insets.systemWindowInsetTop > 0)
if (!homeMenu.fitsSystemWindows) {
if (!ViewCompat.getFitsSystemWindows(homeMenu)) {
homeContent.setPadding(0, insets.systemWindowInsetTop, 0, 0)
}
(actionsButton.layoutParams as? MarginLayoutParams)?.bottomMargin =

View File

@ -36,6 +36,8 @@
<color name="ab_bg_color_media_viewer">#80000000</color>
<color name="background_color_card_item_dark">#424242</color>
<color name="background_color_card_item_light">#ffffff</color>
<color name="background_color_profile_image_dark">#4A4A4A</color>
<color name="background_color_profile_image_light">#eeeeee</color>
<color name="background_color_action_bar_dark">#212121</color>
<color name="bg_color_video_playback_progress">#A0000000</color>
<color name="drawer_banner_foreground">#80000000</color>

View File

@ -22,7 +22,7 @@
<item name="android:adjustViewBounds">false</item>
<item name="sivBorderWidth">1dp</item>
<item name="sivCornerRadiusRatio">10%p</item>
<item name="sivBackgroundColor">?android:colorBackground</item>
<item name="sivBackgroundColor">@color/background_color_profile_image_dark</item>
<item name="sivShape">circle</item>
</style>
@ -31,7 +31,7 @@
<item name="android:adjustViewBounds">false</item>
<item name="sivBorderWidth">1dp</item>
<item name="sivCornerRadiusRatio">10%p</item>
<item name="sivBackgroundColor">?android:colorBackground</item>
<item name="sivBackgroundColor">@color/background_color_profile_image_light</item>
<item name="sivShape">circle</item>
</style>
@ -42,7 +42,7 @@
<item name="android:paddingBottom">3dp</item>
<item name="sivElevation">@dimen/elevation_card</item>
<item name="sivBorderWidth">2dp</item>
<item name="sivBackgroundColor">?android:colorBackground</item>
<item name="sivBackgroundColor">@color/background_color_profile_image_dark</item>
<item name="sivShape">circle</item>
</style>
@ -53,7 +53,7 @@
<item name="android:paddingBottom">3dp</item>
<item name="sivElevation">@dimen/elevation_card</item>
<item name="sivBorderWidth">2dp</item>
<item name="sivBackgroundColor">?android:colorBackground</item>
<item name="sivBackgroundColor">@color/background_color_profile_image_light</item>
<item name="sivShape">circle</item>
</style>