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.text.Editable | |
import android.text.TextWatcher | |
import android.widget.EditText | |
import com.redmadrobot.inputmask.MaskedTextChangedListener | |
import com.redmadrobot.inputmask.helper.AffinityCalculationStrategy | |
import com.redmadrobot.inputmask.model.Notation | |
class NonRemovePrefixTextChangedListener( | |
primaryFormat: String, | |
affineFormats: List<String> = emptyList(), |
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.os.Bundle | |
import android.util.Log | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.lifecycle.lifecycleScope | |
import kotlinx.android.synthetic.main.activity_main.* | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.ExperimentalCoroutinesApi | |
import kotlinx.coroutines.FlowPreview | |
import kotlinx.coroutines.InternalCoroutinesApi | |
import kotlinx.coroutines.channels.BroadcastChannel |
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.view.Window | |
import android.view.WindowManager | |
import android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED | |
import androidx.lifecycle.Lifecycle | |
import androidx.lifecycle.LifecycleObserver | |
import androidx.lifecycle.OnLifecycleEvent | |
fun Window?.getSoftInputMode(): Int { | |
return this?.attributes?.softInputMode ?: SOFT_INPUT_STATE_UNSPECIFIED | |
} |
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.javarush.task.task18.task1821; | |
/* | |
Встречаемость символов | |
*/ | |
import java.io.FileInputStream; | |
import java.util.Map; | |
import java.util.TreeMap; |
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.javarush.task.task18.task1809; | |
/* | |
Реверс файла | |
*/ | |
import java.io.BufferedReader; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.InputStreamReader; |
NewerOlder