[android] fix: WhatsNew updated for night style.
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 49 KiB |
BIN
android/res/drawable-hdpi/img_news_night.png
Normal file
After Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 30 KiB |
BIN
android/res/drawable-mdpi/img_news_night.png
Normal file
After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 66 KiB |
BIN
android/res/drawable-xhdpi/img_news_night.png
Normal file
After Width: | Height: | Size: 192 KiB |
Before Width: | Height: | Size: 157 KiB |
Before Width: | Height: | Size: 163 KiB |
BIN
android/res/drawable-xxhdpi/img_news_night.png
Normal file
After Width: | Height: | Size: 350 KiB |
Before Width: | Height: | Size: 156 KiB |
Before Width: | Height: | Size: 172 KiB |
BIN
android/res/drawable-xxxhdpi/img_news_night.png
Normal file
After Width: | Height: | Size: 667 KiB |
|
@ -35,12 +35,13 @@
|
|||
android:id="@+id/dots"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center">
|
||||
<ImageView
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone">
|
||||
<!--ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="9dp"
|
||||
tools:src="@drawable/news_marker_active"/>
|
||||
tools:src="@drawable/news_marker_active"/-->
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -32,12 +32,12 @@
|
|||
|
||||
<ImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="180dp"
|
||||
android:layout_height="180dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/margin_base"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:tag="@string/tag_height_limited"
|
||||
tools:src="@drawable/img_news_3d"/>
|
||||
tools:src="@drawable/img_news_night"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/subtitle"
|
||||
|
|
|
@ -42,27 +42,22 @@
|
|||
|
||||
<!-- What's new -->
|
||||
<integer-array name="news_images">
|
||||
<item>@drawable/img_news_3d</item>
|
||||
<item>@drawable/img_news_3d_buildings</item>
|
||||
<item>@drawable/img_news_night</item>
|
||||
</integer-array>
|
||||
|
||||
<string-array name="news_titles">
|
||||
<item>@string/whats_new_3d_title</item>
|
||||
<item>@string/whats_new_3d_buildings_title</item>
|
||||
<item>@string/whats_new_night_caption</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="news_subtitles">
|
||||
<item>@string/whats_new_3d_subtitle</item>
|
||||
<item>@string/whats_new_3d_buildings_subtitle</item>
|
||||
<item>@string/whats_new_night_body</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="news_switch_titles">
|
||||
<item>@string/pref_map_3d_title</item>
|
||||
<item>@string/pref_map_3d_buildings_title</item>
|
||||
<item/>
|
||||
</string-array>
|
||||
|
||||
<string-array name="news_switch_subtitles">
|
||||
<item/>
|
||||
<item/>
|
||||
</string-array>
|
||||
</resources>
|
|
@ -48,9 +48,6 @@ public class NewsFragment extends BaseMwmDialogFragment
|
|||
mImages[i] = images.getResourceId(i, 0);
|
||||
|
||||
images.recycle();
|
||||
|
||||
// TODO: Temporary solution. Remove for the next WhatsNews
|
||||
mSubtitles[1] += "\n\n" + MwmApplication.get().getString(R.string.whats_new_3d_update_maps);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -100,15 +97,7 @@ public class NewsFragment extends BaseMwmDialogFragment
|
|||
@Override
|
||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
|
||||
{
|
||||
Framework.Params3dMode _3d = new Framework.Params3dMode();
|
||||
Framework.nativeGet3dMode(_3d);
|
||||
|
||||
if (position == 0)
|
||||
_3d.enabled = isChecked;
|
||||
else
|
||||
_3d.buildings = isChecked;
|
||||
|
||||
Framework.nativeSet3dMode(_3d.enabled, _3d.buildings);
|
||||
// Unused now
|
||||
}
|
||||
});
|
||||
|
||||
|
|