This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.SharedPreferences | |
import android.net.Credentials | |
class CredentialsPreferences @Inject constructor( | |
@SharedPref(SharedPrefsType.Credentials) | |
private val sharedPreferences: SharedPreferences, | |
) { | |
fun getCredentials(): Credentials { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.graphics.Rect | |
import android.view.View | |
import androidx.recyclerview.widget.RecyclerView | |
class SpacesItemDecoration(private val space: Int) : RecyclerView.ItemDecoration() { | |
override fun getItemOffsets(outRect: Rect, view: View, | |
parent: RecyclerView, state: RecyclerView.State) { | |
outRect.left = space | |
outRect.right = space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface FileManager { | |
suspend fun checkIfFileExists(name: String): Boolean | |
fun saveFile(name: String, content: String): Boolean | |
fun readExternalFile(name: String): String | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GlideModule | |
class GlideAppModule : AppGlideModule() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.global.gomoney.ui.cardcustomise | |
import android.content.res.ColorStateList | |
import android.view.LayoutInflater | |
import android.view.ViewGroup | |
import androidx.annotation.ColorRes | |
import androidx.core.content.res.ResourcesCompat | |
import androidx.core.view.isVisible | |
import androidx.core.widget.ImageViewCompat | |
import androidx.recyclerview.widget.RecyclerView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.animation.Animator; | |
import android.animation.AnimatorListenerAdapter; | |
/* compiled from: SeekFrameLayout */ | |
class SeekBarAnimatorListenerAdapter extends AnimatorListenerAdapter { | |
final /* synthetic */ SeekFrameLayout a; | |
SeekBarAnimatorListenerAdapter(SeekFrameLayout seekFrameLayout) { | |
this.a = seekFrameLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context | |
import androidx.core.content.ContextCompat | |
class RandomColorHelper(context: Context) { | |
private val allColors: List<Int> = listOf( | |
ContextCompat.getColor(context, R.color.color1), | |
ContextCompat.getColor(context, R.color.color2), | |
ContextCompat.getColor(context, R.color.color3), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity | |
import android.content.Intent | |
import android.net.Uri | |
import androidx.appcompat.app.AppCompatActivity | |
import com.kryptkode.flashalerts.R | |
import javax.inject.Inject | |
/** | |
* Created by kryptkode on 2/26/2020. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by kryptkode on 2/11/2020. | |
*/ | |
interface RatingDataProvider { | |
fun setAgreeShowDialog(isAgree: Boolean) | |
fun getIsAgreeShowDialog(): Boolean | |
fun setRemindInterval() | |
fun getRemindInterval(): Long | |
fun setInstallDate() |
NewerOlder