package tools.fastlane.screengrab;

import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;

import com.jraska.falcon.Falcon;

/**
 * <p>Screenshot strategy that delegates to Falcon for screenshot capture. <b>Requires
 * API level &gt;= 10</b></p>
 *
 * </ul>
 */
public class FalconScreenshotStrategy implements ScreenshotStrategy {

    private final Activity activity;

    public FalconScreenshotStrategy(Activity activity) {
        this.activity = activity;
    }

    @Override
    @TargetApi(Build.VERSION_CODES.GINGERBREAD_MR1)
    public void takeScreenshot(String screenshotName, ScreenshotCallback screenshotCallback) {
        screenshotCallback.screenshotCaptured(screenshotName, Falcon.takeScreenshotBitmap(activity));
    }
}

package tools.fastlane.screengrab;

import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;

import com.jraska.falcon.Falcon;

/**
 * <p>Screenshot strategy that delegates to Falcon for screenshot capture. <b>Requires
 * API level &gt;= 10</b></p>
 */
public class FalconScreenshotStrategy implements ScreenshotStrategy {

    private final Activity activity;

    public FalconScreenshotStrategy(Activity activity) {
        this.activity = activity;
    }

    @Override
    @TargetApi(Build.VERSION_CODES.GINGERBREAD_MR1)
    public void takeScreenshot(String screenshotName, ScreenshotCallback screenshotCallback) {
        screenshotCallback.screenshotCaptured(screenshotName, Falcon.takeScreenshotBitmap(activity));
    }
}

Remove extra ul from screengrab falcon strat (#12247)