mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 20:24:03 -04:00
Bug fix: Correct the usage of close icon
MainActivity, AnimationUtils & tab_switcher.xml were using the "ic_close_white_24dp" (whose colouring was corrected in a previous commit of this branch from black to white, which caused the 'Close all tabs' button to appear completely white without any icons)
This commit is contained in:
parent
f568857952
commit
865b579057
@ -529,7 +529,7 @@ public class MainActivity extends BaseActivity implements WebViewCallback,
|
||||
|
||||
drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);
|
||||
closeAllTabsButton.setImageDrawable(
|
||||
ContextCompat.getDrawable(this, R.drawable.ic_close_white_24dp));
|
||||
ContextCompat.getDrawable(this, R.drawable.ic_close_black_24dp));
|
||||
tabSwitcherRoot.setVisibility(View.GONE);
|
||||
progressBar.setVisibility(View.VISIBLE);
|
||||
contentFrame.setVisibility(View.VISIBLE);
|
||||
|
@ -86,7 +86,7 @@ public class AnimationUtils {
|
||||
|
||||
public void onAnimationStart(Animation animation) {
|
||||
v.setImageDrawable(
|
||||
ContextCompat.getDrawable(v.getContext(), R.drawable.ic_close_white_24dp));
|
||||
ContextCompat.getDrawable(v.getContext(), R.drawable.ic_close_black_24dp));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
10
app/src/main/res/drawable/ic_close_black_24dp.xml
Normal file
10
app/src/main/res/drawable/ic_close_black_24dp.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:tint="#000000"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0"
|
||||
android:width="24dp">
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/>
|
||||
</vector>
|
@ -25,6 +25,6 @@
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:srcCompat="@drawable/ic_close_white_24dp"
|
||||
app:srcCompat="@drawable/ic_close_black_24dp"
|
||||
/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
Loading…
x
Reference in New Issue
Block a user