Corrections of innecesaries spaces in methods and classes

master
dtvv 2018-08-27 15:04:35 -05:00
parent f219ccee47
commit e2df388aa8
21 changed files with 0 additions and 76 deletions

View File

@ -68,7 +68,6 @@ class CreateSeedActivity : CustomActivity() {
e.printStackTrace()
}
/*
* Validate if can continue
* */
@ -122,7 +121,6 @@ class CreateSeedActivity : CustomActivity() {
imm.showSoftInput(tilPin, InputMethodManager.SHOW_IMPLICIT)
}
@OnTextChanged(value = R.id.tietPin, callback = OnTextChanged.Callback.AFTER_TEXT_CHANGED)
internal fun afterPinChanged(editable: Editable) {
this.fieldsValidator.validate()

View File

@ -5,7 +5,6 @@ import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import cy.agorise.crystalwallet.util.FieldsValidator
/*
* Custom implementaion of the activity
* */
@ -21,9 +20,6 @@ open class CustomActivity : AppCompatActivity() {
* */
protected lateinit var globalActivity: Activity
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

View File

@ -20,9 +20,6 @@ class LoadingActivity : CustomActivity() {
@BindView(R.id.imageviewLoading)
lateinit var imageviewLoading:ImageView
override fun onCreate(savedInstanceState: Bundle?) {
/*
@ -154,9 +151,6 @@ class LoadingActivity : CustomActivity() {
private var loadingIconHeigt:Int = -1
private var loadinIconChangeSize:Boolean = false
/*
* Show the loading activity
* */
@ -250,7 +244,6 @@ class LoadingActivity : CustomActivity() {
}
}
/*
* Interface for all the events
* */

View File

@ -4,7 +4,6 @@ import android.app.Activity
import cy.agorise.crystalwallet.R
import kotlinx.android.synthetic.main.account_seed_list.view.*
/*
* Dialog material that shows loading gif and and explicit message
* */

View File

@ -32,8 +32,6 @@ open abstract class DialogMaterial{
var negativeResponse:NegativeResponse? = null
constructor(activity: Activity) {
/*
@ -47,7 +45,6 @@ open abstract class DialogMaterial{
builder = MaterialDialog.Builder(activity)
}
/*
* Show the dialog
* */
@ -129,7 +126,6 @@ open abstract class DialogMaterial{
this.materialDialog = this.builder.build()
}
/*
* Set indeterminate progress
*

View File

@ -3,7 +3,6 @@ package cy.agorise.crystalwallet.dialogs.material
import android.app.Activity
import android.widget.Toast
/*
* This class is an implementation of toast
* */

View File

@ -5,7 +5,6 @@ import cy.agorise.crystalwallet.R
import cy.agorise.crystalwallet.activities.CustomActivity
import cy.agorise.crystalwallet.dialogs.material.DialogMaterial
/*
* Class to test DialogMaterial.kt
* */
@ -16,16 +15,12 @@ class Test_DialogMaterialActivity : CustomActivity() {
* */
lateinit var dialogMaterial: DialogMaterial;
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.empty_activity)
}
/*
* This class can not be instantiate,
* this methos is commented to prevent compilation error, if uncommented it should

View File

@ -6,7 +6,6 @@ import cy.agorise.crystalwallet.R
import cy.agorise.crystalwallet.activities.CustomActivity
import kotlinx.android.synthetic.main.empty_activity.*
/*
* Unit test for class GIFView
* */
@ -26,7 +25,6 @@ class Test_GIFActivity : CustomActivity() {
//loadWithContainer()
}
/*
* Load normaly the gif
* */

View File

@ -5,7 +5,6 @@ import android.widget.Toast
import cy.agorise.crystalwallet.activities.CustomActivity
import cy.agorise.crystalwallet.activities.LoadingActivity
/*
* Class to test LoadingActivity
* */
@ -21,7 +20,6 @@ class Test_LoadingActivity : CustomActivity(){
//sizeInLoadingIcon()
}
/*
* Show the simple loading graphic
* */
@ -30,7 +28,6 @@ class Test_LoadingActivity : CustomActivity(){
//LoadingActivity.dismiss() //For testing porpouse
}
/*
* Loading with timer
* */
@ -39,7 +36,6 @@ class Test_LoadingActivity : CustomActivity(){
LoadingActivity.show(globalActivity)
}
/*
* Listener when the loading window is closed
* */
@ -54,7 +50,6 @@ class Test_LoadingActivity : CustomActivity(){
LoadingActivity.show(globalActivity)
}
/*
* Listener when the loading window is resume
* */

View File

@ -3,9 +3,6 @@ package cy.agorise.crystalwallet.tests.activities.dialogs
import android.os.Bundle
import cy.agorise.crystalwallet.activities.CustomActivity
/*
* Class to test all network implementation
* */
@ -17,7 +14,6 @@ class Test_NetworkActivity:CustomActivity(){
}
fun testServerConnection(){

View File

@ -16,7 +16,6 @@ class Test_ToastActivity : CustomActivity() {
showLongShort()
}
/*
* Show simple short toast
* */
@ -24,7 +23,6 @@ class Test_ToastActivity : CustomActivity() {
ToastIt.showShortToast(this,"showShortToast")
}
/*
* Show simple short toast
* */

View File

@ -17,8 +17,6 @@ class Test_VideoActivity : CustomActivity() {
* cy.agorise.crystalwallet.views.natives.VideoViewEx
* should be used as view to get the new implementations
* */
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
@ -33,7 +31,6 @@ class Test_VideoActivity : CustomActivity() {
playIndeterminate()
}
/*
* Just one time play
* */
@ -42,7 +39,6 @@ class Test_VideoActivity : CustomActivity() {
video.start()
}
/*
* Just one time play
* */

View File

@ -6,24 +6,17 @@ import android.arch.lifecycle.LiveData
import cy.agorise.crystalwallet.dao.CrystalDatabase
import cy.agorise.crystalwallet.models.AccountSeed
class AccountSeedViewModel : AndroidViewModel {
private var accountSeed: LiveData<AccountSeed>? = null
private val db: CrystalDatabase
private val app: Application
constructor(application: Application,db:CrystalDatabase): super(application) {
this.app = application;
this.db = db;
}
fun loadSeed(seedId: Long) {
this.accountSeed = this.db.accountSeedDao().findByIdLiveData(seedId)
}

View File

@ -1,6 +1,5 @@
package cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces
/*
* Interface that all the views that need validation can use
* */

View File

@ -2,13 +2,11 @@ package cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces
import cy.agorise.crystalwallet.viewmodels.validators.customImpl.validationFields.CustomValidationField
/*
* Listener to deliver response to controls from inner validations
* */
interface UIValidatorListener {
fun onValidationFailed(customValidationField: CustomValidationField)
fun onValidationSucceeded(customValidationField: CustomValidationField)
}

View File

@ -10,7 +10,6 @@ import cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces.UIVa
import cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces.UIValidatorListener
import cy.agorise.crystalwallet.views.natives.CustomTextInputEditText
/*
*
* Validation layer for Account Name
@ -28,9 +27,6 @@ class BitsharesAccountNameValidation : CustomValidationField, UIValidator {
private var onAccountExist: OnAccountExist? = null
constructor ( activity: Activity,
accountNameField: CustomTextInputEditText,
uiValidatorListener: UIValidatorListener) : super(activity) {
@ -245,7 +241,6 @@ class BitsharesAccountNameValidation : CustomValidationField, UIValidator {
* */
}
/*
* Setters and getters
* */

View File

@ -28,9 +28,6 @@ open class CustomValidationField {
@JvmField protected var activity: Activity
constructor(activity:Activity){
/*

View File

@ -6,7 +6,6 @@ import cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces.UIVa
import cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces.UIValidatorListener
import cy.agorise.crystalwallet.views.natives.CustomTextInputEditText
/*
* Validate PIN and PIN confirmation
* */
@ -19,8 +18,6 @@ class PinDoubleConfirmationValidationField : CustomValidationField, UIValidator
private val pinConfirmationField: CustomTextInputEditText
constructor(activity: Activity,
pinField: CustomTextInputEditText,
pinConfirmationField: CustomTextInputEditText,
@ -31,7 +28,6 @@ class PinDoubleConfirmationValidationField : CustomValidationField, UIValidator
this.uiValidatorListener = pinDoubleConfirmationInterface
}
override fun validate() {
val pin = pinField.text.toString().trim { it <= ' ' }

View File

@ -8,7 +8,6 @@ import android.view.View;
import cy.agorise.crystalwallet.models.FieldValidatorModel;
import cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces.UIValidator;
/*
* Custom implementation of the native control to get more over control it
* */
@ -30,8 +29,6 @@ public class CustomTextInputEditText extends TextInputEditText implements UIVali
private String lastValue;
public CustomTextInputEditText(Context context, AttributeSet attrs) {
super(context, attrs);
@ -49,8 +46,6 @@ public class CustomTextInputEditText extends TextInputEditText implements UIVali
});
}
public void setFieldValidatorModel(FieldValidatorModel fieldValidatorModel) {
this.fieldValidatorModel = fieldValidatorModel;
}
@ -72,7 +67,4 @@ public class CustomTextInputEditText extends TextInputEditText implements UIVali
public void validate() {
uiValidator.validate();
}
}

View File

@ -7,7 +7,6 @@ import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import cy.agorise.crystalwallet.R
/*
* GIF implementation based on existing imageview class
* */
@ -19,8 +18,6 @@ class GIFView : ImageView {
private var options: RequestOptions? = RequestOptions()
constructor(context:Context,attrs: AttributeSet?) : super(context,attrs) {
}

View File

@ -7,7 +7,6 @@ import android.widget.VideoView
import cy.agorise.crystalwallet.R
import kotlinx.android.synthetic.main.empty_activity.*
/*
* Extensión for videoview
* */
@ -22,7 +21,6 @@ class VideoExView(context: Context?, attrs: AttributeSet?) : VideoView(context,
this.setVideoURI(uri)
}
/*
* With this method the video play continues
* */