aboutsummaryrefslogblamecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit/customviews/SpoilerOnClickTextView.java
blob: 43709bbbfb23988284bca74148bb9abdd6a4a394 (plain) (tree)

























                                                                                                    
                                                            


                                          
package ml.docilealligator.infinityforreddit.customviews;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.Nullable;

public class SpoilerOnClickTextView extends androidx.appcompat.widget.AppCompatTextView {
    private boolean isSpoilerOnClick;

    public SpoilerOnClickTextView(Context context) {
        super(context);
    }

    public SpoilerOnClickTextView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public SpoilerOnClickTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public boolean isSpoilerOnClick() {
        return isSpoilerOnClick;
    }

    public void  setSpoilerOnClick(boolean spoilerOnClick) {
        isSpoilerOnClick = spoilerOnClick;
    }
}