osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.64k stars 1.01k forks source link

Weather layer alpha slider don't change it immidietely #20533

Open nnngrach opened 2 months ago

nnngrach commented 2 months ago

Description

video:

https://github.com/user-attachments/assets/be7a982a-6e9a-422a-9554-5c469b52de0e

Steps to reproduce

  1. Configure map -> Weather -> Temperature
  2. Turn layer on
  3. Change Transparency slider position

Actual result

Weather only blinks, but layer alpha doesn't change at all for tiles on the screen. Only new loaded tiles (after map moving) will have new alpha value.

Expected result

Weather layer alpha changes immediately for tiles on the screen

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive. Review this CAREFULLY before posting your issue!

OsmAnd Version: Nightly 4.9.0#2939m, released 20204-08-07
Android/iOS version: Android 9
Device model: Samsung Galaxy S10
Crash-Logs: ?
nnngrach commented 2 months ago

This code can fix the problem, but I don't sure if this is a correct way.

Screenshot 2024-08-07 at 22 55 53
DmitryAlexei commented 2 months ago

reproduced on Samsung galaxy note 20 Android 13 OsmAnd~ 4.9.0#2932m, released: 2024-08-07

https://github.com/user-attachments/assets/26355b76-7384-4640-94a1-b679f6e9bb3d

vshcherb commented 2 months ago

Cache needs to be cleared after transparency changed

DmitryAlexei commented 1 month ago

OsmAnd~ 4.9.0#3024m, released: 2024-08-19 Works very slow on my device

https://github.com/user-attachments/assets/65eb9f9d-c195-4bbd-bdd4-9796ddffd363

dmpr0 commented 1 month ago

Review

dmpr0 commented 1 week ago

Review

21%? 20%? Video
dmpr0 commented 2 days ago

Review 2

Start value 10% Set to 100%, reopen Video
vshcherb commented 2 days ago

Previous https://github.com/osmandapp/OsmAnd/pull/21040 was reverted, no decision was made and new bug introduced

vshcherb commented 1 day ago