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

NotificationChannelFactory.java « background « maps « mapswithme « com « src « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 57a6acd3962e5ab14693e2ba445e679940e8c4bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.mapswithme.maps.background;

import android.app.Application;
import android.support.annotation.NonNull;

import com.mapswithme.util.Utils;

public class NotificationChannelFactory
{
  @NonNull
  public static NotificationChannelProvider createProvider(@NonNull Application app)
  {
    return Utils.isOreoOrLater() ? new OreoCompatNotificationChannelProvider(app)
                                 : new StubNotificationChannelProvider(app);
  }
}