Corrections of innecesaries spaces in methods and classes

This commit is contained in:
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() e.printStackTrace()
} }
/* /*
* Validate if can continue * Validate if can continue
* */ * */
@ -122,7 +121,6 @@ class CreateSeedActivity : CustomActivity() {
imm.showSoftInput(tilPin, InputMethodManager.SHOW_IMPLICIT) imm.showSoftInput(tilPin, InputMethodManager.SHOW_IMPLICIT)
} }
@OnTextChanged(value = R.id.tietPin, callback = OnTextChanged.Callback.AFTER_TEXT_CHANGED) @OnTextChanged(value = R.id.tietPin, callback = OnTextChanged.Callback.AFTER_TEXT_CHANGED)
internal fun afterPinChanged(editable: Editable) { internal fun afterPinChanged(editable: Editable) {
this.fieldsValidator.validate() this.fieldsValidator.validate()

View file

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

View file

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

View file

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

View file

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

View file

@ -3,7 +3,6 @@ package cy.agorise.crystalwallet.dialogs.material
import android.app.Activity import android.app.Activity
import android.widget.Toast import android.widget.Toast
/* /*
* This class is an implementation of 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.activities.CustomActivity
import cy.agorise.crystalwallet.dialogs.material.DialogMaterial import cy.agorise.crystalwallet.dialogs.material.DialogMaterial
/* /*
* Class to test DialogMaterial.kt * Class to test DialogMaterial.kt
* */ * */
@ -16,16 +15,12 @@ class Test_DialogMaterialActivity : CustomActivity() {
* */ * */
lateinit var dialogMaterial: DialogMaterial; lateinit var dialogMaterial: DialogMaterial;
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setContentView(R.layout.empty_activity) setContentView(R.layout.empty_activity)
} }
/* /*
* This class can not be instantiate, * This class can not be instantiate,
* this methos is commented to prevent compilation error, if uncommented it should * 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 cy.agorise.crystalwallet.activities.CustomActivity
import kotlinx.android.synthetic.main.empty_activity.* import kotlinx.android.synthetic.main.empty_activity.*
/* /*
* Unit test for class GIFView * Unit test for class GIFView
* */ * */
@ -26,7 +25,6 @@ class Test_GIFActivity : CustomActivity() {
//loadWithContainer() //loadWithContainer()
} }
/* /*
* Load normaly the gif * 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.CustomActivity
import cy.agorise.crystalwallet.activities.LoadingActivity import cy.agorise.crystalwallet.activities.LoadingActivity
/* /*
* Class to test LoadingActivity * Class to test LoadingActivity
* */ * */
@ -21,7 +20,6 @@ class Test_LoadingActivity : CustomActivity(){
//sizeInLoadingIcon() //sizeInLoadingIcon()
} }
/* /*
* Show the simple loading graphic * Show the simple loading graphic
* */ * */
@ -30,7 +28,6 @@ class Test_LoadingActivity : CustomActivity(){
//LoadingActivity.dismiss() //For testing porpouse //LoadingActivity.dismiss() //For testing porpouse
} }
/* /*
* Loading with timer * Loading with timer
* */ * */
@ -39,7 +36,6 @@ class Test_LoadingActivity : CustomActivity(){
LoadingActivity.show(globalActivity) LoadingActivity.show(globalActivity)
} }
/* /*
* Listener when the loading window is closed * Listener when the loading window is closed
* */ * */
@ -54,7 +50,6 @@ class Test_LoadingActivity : CustomActivity(){
LoadingActivity.show(globalActivity) LoadingActivity.show(globalActivity)
} }
/* /*
* Listener when the loading window is resume * 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 android.os.Bundle
import cy.agorise.crystalwallet.activities.CustomActivity import cy.agorise.crystalwallet.activities.CustomActivity
/* /*
* Class to test all network implementation * Class to test all network implementation
* */ * */
@ -17,7 +14,6 @@ class Test_NetworkActivity:CustomActivity(){
} }
fun testServerConnection(){ fun testServerConnection(){

View file

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

View file

@ -17,8 +17,6 @@ class Test_VideoActivity : CustomActivity() {
* cy.agorise.crystalwallet.views.natives.VideoViewEx * cy.agorise.crystalwallet.views.natives.VideoViewEx
* should be used as view to get the new implementations * should be used as view to get the new implementations
* */ * */
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
@ -33,7 +31,6 @@ class Test_VideoActivity : CustomActivity() {
playIndeterminate() playIndeterminate()
} }
/* /*
* Just one time play * Just one time play
* */ * */
@ -42,7 +39,6 @@ class Test_VideoActivity : CustomActivity() {
video.start() video.start()
} }
/* /*
* Just one time play * 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.dao.CrystalDatabase
import cy.agorise.crystalwallet.models.AccountSeed import cy.agorise.crystalwallet.models.AccountSeed
class AccountSeedViewModel : AndroidViewModel { class AccountSeedViewModel : AndroidViewModel {
private var accountSeed: LiveData<AccountSeed>? = null private var accountSeed: LiveData<AccountSeed>? = null
private val db: CrystalDatabase private val db: CrystalDatabase
private val app: Application private val app: Application
constructor(application: Application,db:CrystalDatabase): super(application) { constructor(application: Application,db:CrystalDatabase): super(application) {
this.app = application; this.app = application;
this.db = db; this.db = db;
} }
fun loadSeed(seedId: Long) { fun loadSeed(seedId: Long) {
this.accountSeed = this.db.accountSeedDao().findByIdLiveData(seedId) this.accountSeed = this.db.accountSeedDao().findByIdLiveData(seedId)
} }

View file

@ -1,6 +1,5 @@
package cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces package cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces
/* /*
* Interface that all the views that need validation can use * 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 import cy.agorise.crystalwallet.viewmodels.validators.customImpl.validationFields.CustomValidationField
/* /*
* Listener to deliver response to controls from inner validations * Listener to deliver response to controls from inner validations
* */ * */
interface UIValidatorListener { interface UIValidatorListener {
fun onValidationFailed(customValidationField: CustomValidationField) fun onValidationFailed(customValidationField: CustomValidationField)
fun onValidationSucceeded(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.viewmodels.validators.customImpl.interfaces.UIValidatorListener
import cy.agorise.crystalwallet.views.natives.CustomTextInputEditText import cy.agorise.crystalwallet.views.natives.CustomTextInputEditText
/* /*
* *
* Validation layer for Account Name * Validation layer for Account Name
@ -28,9 +27,6 @@ class BitsharesAccountNameValidation : CustomValidationField, UIValidator {
private var onAccountExist: OnAccountExist? = null private var onAccountExist: OnAccountExist? = null
constructor ( activity: Activity, constructor ( activity: Activity,
accountNameField: CustomTextInputEditText, accountNameField: CustomTextInputEditText,
uiValidatorListener: UIValidatorListener) : super(activity) { uiValidatorListener: UIValidatorListener) : super(activity) {
@ -245,7 +241,6 @@ class BitsharesAccountNameValidation : CustomValidationField, UIValidator {
* */ * */
} }
/* /*
* Setters and getters * Setters and getters
* */ * */

View file

@ -28,9 +28,6 @@ open class CustomValidationField {
@JvmField protected var activity: Activity @JvmField protected var activity: Activity
constructor(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.viewmodels.validators.customImpl.interfaces.UIValidatorListener
import cy.agorise.crystalwallet.views.natives.CustomTextInputEditText import cy.agorise.crystalwallet.views.natives.CustomTextInputEditText
/* /*
* Validate PIN and PIN confirmation * Validate PIN and PIN confirmation
* */ * */
@ -19,8 +18,6 @@ class PinDoubleConfirmationValidationField : CustomValidationField, UIValidator
private val pinConfirmationField: CustomTextInputEditText private val pinConfirmationField: CustomTextInputEditText
constructor(activity: Activity, constructor(activity: Activity,
pinField: CustomTextInputEditText, pinField: CustomTextInputEditText,
pinConfirmationField: CustomTextInputEditText, pinConfirmationField: CustomTextInputEditText,
@ -31,7 +28,6 @@ class PinDoubleConfirmationValidationField : CustomValidationField, UIValidator
this.uiValidatorListener = pinDoubleConfirmationInterface this.uiValidatorListener = pinDoubleConfirmationInterface
} }
override fun validate() { override fun validate() {
val pin = pinField.text.toString().trim { it <= ' ' } 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.models.FieldValidatorModel;
import cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces.UIValidator; import cy.agorise.crystalwallet.viewmodels.validators.customImpl.interfaces.UIValidator;
/* /*
* Custom implementation of the native control to get more over control it * 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; private String lastValue;
public CustomTextInputEditText(Context context, AttributeSet attrs) { public CustomTextInputEditText(Context context, AttributeSet attrs) {
super(context, attrs); super(context, attrs);
@ -49,8 +46,6 @@ public class CustomTextInputEditText extends TextInputEditText implements UIVali
}); });
} }
public void setFieldValidatorModel(FieldValidatorModel fieldValidatorModel) { public void setFieldValidatorModel(FieldValidatorModel fieldValidatorModel) {
this.fieldValidatorModel = fieldValidatorModel; this.fieldValidatorModel = fieldValidatorModel;
} }
@ -72,7 +67,4 @@ public class CustomTextInputEditText extends TextInputEditText implements UIVali
public void validate() { public void validate() {
uiValidator.validate(); uiValidator.validate();
} }
} }

View file

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

View file

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