jackpocket/android-scratchoff

Scratch does not complete if fadeOnClear is set to false

Closed this issue · 0 comments

When you try to scratch off without fade on clear, when you complete it, scratch does not clear.

ScratchoffController controller = new ScratchoffController(this)
                .setThresholdPercent(0.60d)
                .setTouchRadiusDip(this, 20)
                .setClearOnThresholdReached(true)
                .setFadeOnClear(false)
                .setCompletionCallback(new Runnable() {
                    @Override
                    public void run() {
                        Log.i(TAG, "completo");
                    }
                })
                .attach(schScratch, flxScratch);