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: 4b51994761d3be11e7fdc570c8e78489fafef995 (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
package com.mapswithme.maps.maplayer.subway;

import android.app.Application;
import android.content.Context;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;

import com.mapswithme.maps.content.AbstractContextualListener;

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

  class Default extends AbstractContextualListener implements OnTransitSchemeChangedListener
  {
    public Default(@NonNull Application context)
    {
      super(context);
    }

    @Override
    public void onTransitStateChanged(int index)
    {
      Context app = getContext();
      TransitSchemeState state = TransitSchemeState.values()[index];
      state.activate(app);
    }
  }
}