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

OnTransitSchemeChangedListener.java « subway « maplayer « maps « mapswithme « com « src « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 358c3fe21fb309a2849c451cddaed226d7a4a8b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.mapswithme.maps.maplayer.subway;

import android.support.annotation.MainThread;
import android.support.annotation.NonNull;

import com.mapswithme.maps.MwmApplication;
import com.mapswithme.maps.content.AbstractContextualListener;

public interface OnTransitSchemeChangedListener
{
  @SuppressWarnings("unused")
  @MainThread
  void onTransitStateChanged(int type);

  class Default extends AbstractContextualListener implements OnTransitSchemeChangedListener
  {
    public Default(@NonNull MwmApplication app)
    {
      super(app);
    }

    @Override
    public void onTransitStateChanged(int index)
    {
      MwmApplication app = getApp();
      if (app == null)
        return;

      TransitSchemeState state = TransitSchemeState.makeInstance(index);
      state.onReceived(app);
    }
  }
}