Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexzatsepin <az@mapswithme.com>2016-12-07 13:00:54 +0300
committeralexzatsepin <az@mapswithme.com>2016-12-07 13:01:41 +0300
commitf136bf9b916dccca5de61aa7a6290ac3f50c993d (patch)
tree8b33f9eba66a95811ea4215b2c017f796950a157 /android
parent80de802aa61f5b82c2f4a348d72a5e0aff5244de (diff)
[android] Fixed the traffic button icon during screen rotation
Diffstat (limited to 'android')
-rw-r--r--android/src/com/mapswithme/maps/traffic/widget/TrafficButtonController.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/traffic/widget/TrafficButtonController.java b/android/src/com/mapswithme/maps/traffic/widget/TrafficButtonController.java
index e31908c0c5..53952e6d8d 100644
--- a/android/src/com/mapswithme/maps/traffic/widget/TrafficButtonController.java
+++ b/android/src/com/mapswithme/maps/traffic/widget/TrafficButtonController.java
@@ -50,8 +50,10 @@ public class TrafficButtonController implements TrafficManager.TrafficCallback
@Override
public void onNoData()
{
+ mButton.turnOn();
//TODO: put localized string
Toast.makeText(mActivity, "There is not traffic data here", Toast.LENGTH_SHORT).show();
+
}
@Override
@@ -75,6 +77,7 @@ public class TrafficButtonController implements TrafficManager.TrafficCallback
@Override
public void onExpiredData()
{
+ mButton.turnOn();
//TODO: put localized string
Toast.makeText(mActivity, "Traffic data is outdated", Toast.LENGTH_SHORT).show();
}
@@ -82,6 +85,7 @@ public class TrafficButtonController implements TrafficManager.TrafficCallback
@Override
public void onExpiredApp()
{
+ mButton.turnOn();
//TODO: put localized string
Toast.makeText(mActivity, "The app needs to be updated to get traffic data", Toast.LENGTH_SHORT).show();
}