[android] Added icons for cian and fixed crash in search
BIN
android/res/drawable-hdpi/ic_category_cian.png
Normal file
After Width: | Height: | Size: 527 B |
BIN
android/res/drawable-hdpi/ic_category_cian_night.png
Normal file
After Width: | Height: | Size: 527 B |
BIN
android/res/drawable-hdpi/logo_cain_dark.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
android/res/drawable-hdpi/logo_cain_light.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
android/res/drawable-mdpi/ic_category_cian.png
Normal file
After Width: | Height: | Size: 421 B |
BIN
android/res/drawable-mdpi/ic_category_cian_night.png
Normal file
After Width: | Height: | Size: 421 B |
BIN
android/res/drawable-mdpi/logo_cain_dark.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
android/res/drawable-mdpi/logo_cain_light.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
android/res/drawable-xhdpi/ic_category_cian.png
Normal file
After Width: | Height: | Size: 758 B |
BIN
android/res/drawable-xhdpi/ic_category_cian_night.png
Normal file
After Width: | Height: | Size: 760 B |
BIN
android/res/drawable-xhdpi/logo_cain_dark.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
android/res/drawable-xhdpi/logo_cain_light.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
android/res/drawable-xxhdpi/ic_category_cian.png
Normal file
After Width: | Height: | Size: 973 B |
BIN
android/res/drawable-xxhdpi/ic_category_cian_night.png
Normal file
After Width: | Height: | Size: 974 B |
BIN
android/res/drawable-xxhdpi/logo_cain_dark.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
android/res/drawable-xxhdpi/logo_cain_light.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
android/res/drawable-xxxhdpi/ic_category_cian.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
android/res/drawable-xxxhdpi/ic_category_cian_night.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
android/res/drawable-xxxhdpi/logo_cain_dark.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
android/res/drawable-xxxhdpi/logo_cain_light.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
|
@ -47,7 +47,13 @@ class CategoriesAdapter extends RecyclerView.Adapter<CategoriesAdapter.ViewHolde
|
|||
|
||||
mCategoryResIds[i] = resources.getIdentifier(key, "string", packageName);
|
||||
if (mCategoryResIds[i] == 0)
|
||||
throw new IllegalStateException("Can't get string resource id for category:" + key);
|
||||
{
|
||||
// TODO: remove this code after "cian" feature is obsoleted.
|
||||
if (key.equals("cian"))
|
||||
mCategoryResIds[i] = R.string.real_estate;
|
||||
else
|
||||
throw new IllegalStateException("Can't get string resource id for category:" + key);
|
||||
}
|
||||
|
||||
String iconId = "ic_category_" + key;
|
||||
if (isNightTheme)
|
||||
|
|