class MarshmallowNetworkObservingStrategy implements NetworkObservingStrategy {

  protected boolean isIdleMode(final Context context) {
    final String packageName = context.getPackageName();
    final PowerManager manager = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
    boolean isIgnoringOptimizations = manager.isIgnoringBatteryOptimizations(packageName);
    return manager.isDeviceIdleMode() && !isIgnoringOptimizations;
  }

  @SuppressWarnings("NullAway") // networkCallback cannot be initialized here public  MarshmallowNetworkObservingStrategy();

}