[yopme] Do notifyBSUpdated only for rotate button.

This commit is contained in:
vng 2013-12-01 13:11:05 +01:00 committed by Alex Zolotarev
parent 0978992519
commit e7704a2e74

View file

@ -216,28 +216,28 @@ public class BackscreenActivity extends BSActivity implements LocationListener
{
super.onHandleIntent(intent);
notifyBSUpdated();
final String action = intent.getAction();
if (action != null && (ACTION_LOCATION + ACTION_SHOW_RECT).contains(action))
{
extractLocation(intent);
extractZoom(intent);
if (ACTION_LOCATION.equals(action))
setToLocationMode();
else if (ACTION_SHOW_RECT.equals(action))
setToPoiMode(intent);
mLogger.d("onHandleIntent : requestLocationUpdate");
requestLocationUpdate();
notifyBSUpdated();
}
new Handler(Looper.getMainLooper()).post(new Runnable()
{
@Override
public void run()
{
final String action = intent.getAction();
if (action != null && (ACTION_LOCATION + ACTION_SHOW_RECT).contains(action))
{
extractLocation(intent);
extractZoom(intent);
if (ACTION_LOCATION.equals(intent.getAction()))
setToLocationMode();
else if (ACTION_SHOW_RECT.equals(intent.getAction()))
setToPoiMode(intent);
mLogger.d("onHandleIntent : requestLocationUpdate");
requestLocationUpdate();
}
mLogger.d("onHandleIntent : invalidate");
updateData();
invalidate();