Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
Linhome-Android
Commits
32d0f3a1
Commit
32d0f3a1
authored
Jun 23, 2020
by
Christophe Deschamps
Browse files
Minor fixes found during iOS Dev
Former-commit-id: 876ef16b190d11b9b6d86f3211372ac6386342c8
parent
e8e5f7ff
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
30 deletions
+15
-30
app/app.iml
app/app.iml
+9
-9
app/src/main/java/org/lindoor/ui/validators/NonEmptyEmailFormatValidator.kt
...org/lindoor/ui/validators/NonEmptyEmailFormatValidator.kt
+0
-15
app/src/main/java/org/lindoor/ui/validators/NonEmptyUrlFormatValidator.kt
...a/org/lindoor/ui/validators/NonEmptyUrlFormatValidator.kt
+1
-1
app/src/main/java/org/lindoor/ui/validators/NonEmptyWithRegExpFormatValidator.kt
...indoor/ui/validators/NonEmptyWithRegExpFormatValidator.kt
+1
-1
app/src/main/java/org/lindoor/ui/validators/RegExpFormatValidator.kt
...n/java/org/lindoor/ui/validators/RegExpFormatValidator.kt
+1
-1
app/src/main/res/layout/fragment_about.xml
app/src/main/res/layout/fragment_about.xml
+3
-3
No files found.
app/app.iml
View file @
32d0f3a1
...
...
@@ -70,26 +70,26 @@
<output-test
url=
"file://$MODULE_DIR$/build/intermediates/javac/debugUnitTest/classes"
/>
<exclude-output
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/navigation-args/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/kapt/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/ap_generated_sources/debug/out"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debug/out"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/buildConfig/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debug/out"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/kaptKotlin/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/navigation-args/debug"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/ap_generated_sources/debug/out"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debug/out"
isTestSource=
"false"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/google-services/debug"
type=
"java-resource"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/crashlytics/res/debug"
type=
"java-resource"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/rs/debug"
type=
"java-resource"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/kaptKotlin/debugAndroidTest"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debugAndroidTest/out"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/kapt/debugAndroidTest"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/ap_generated_sources/debugAndroidTest/out"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debugAndroidTest/out"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debugAndroidTest/out"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/kaptKotlin/debugAndroidTest"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/ap_generated_sources/debugAndroidTest/out"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug"
type=
"java-test-resource"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/kapt/debugUnitTest"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/ap_generated_sources/debugUnitTest/out"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/kaptKotlin/debugUnitTest"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/build/generated/source/kapt/debugUnitTest"
isTestSource=
"true"
generated=
"true"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/res"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/debug/assets"
type=
"java-resource"
/>
...
...
@@ -139,11 +139,11 @@
<orderEntry
type=
"module-library"
>
<library
name=
"Gradle: kaptGeneratedClasses"
>
<CLASSES>
<root
url=
"file://$MODULE_DIR$/build/tmp/kapt3/classes/debugAndroidTest"
/>
<root
url=
"file://$MODULE_DIR$/build/tmp/kapt3/classes/debug"
/>
<root
url=
"file://$MODULE_DIR$/build/tmp/kapt3/classes/debugUnitTest"
/>
<root
url=
"file://$MODULE_DIR$/build/tmp/kapt3/classes/release"
/>
<root
url=
"file://$MODULE_DIR$/build/tmp/kapt3/classes/debug"
/>
<root
url=
"file://$MODULE_DIR$/build/tmp/kapt3/classes/releaseUnitTest"
/>
<root
url=
"file://$MODULE_DIR$/build/tmp/kapt3/classes/debugAndroidTest"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
...
...
app/src/main/java/org/lindoor/ui/validators/NonEmptyEmailFormatValidator.kt
deleted
100644 → 0
View file @
e8e5f7ff
package
org.lindoor.ui.validators
import
android.text.TextUtils
import
org.lindoor.customisation.Texts
class
NonEmptyEmailFormatValidator
:
GenericStringValidator
(
Texts
.
get
(
"input_invalid_format_email"
))
{
override
fun
validity
(
s
:
CharSequence
):
Pair
<
Boolean
,
String
?
>
{
if
(
TextUtils
.
isEmpty
(
s
))
return
Pair
(
false
,
Texts
.
get
(
"input_invalid_empty_field"
))
if
(!
android
.
util
.
Patterns
.
EMAIL_ADDRESS
.
matcher
(
s
).
matches
())
return
Pair
(
false
,
errorText
)
return
Pair
(
true
,
null
)
}
}
\ No newline at end of file
app/src/main/java/org/lindoor/ui/validators/NonEmptyUrlFormatValidator.kt
View file @
32d0f3a1
...
...
@@ -3,7 +3,7 @@ package org.lindoor.ui.validators
import
android.text.TextUtils
import
org.lindoor.customisation.Texts
class
NonEmptyUrlFormatValidator
:
GenericStringValidator
(
Texts
.
get
(
"input_invalid_format_uri"
)
)
{
class
NonEmptyUrlFormatValidator
:
GenericStringValidator
(
"input_invalid_format_uri"
)
{
override
fun
validity
(
s
:
CharSequence
):
Pair
<
Boolean
,
String
?
>
{
if
(
TextUtils
.
isEmpty
(
s
))
return
Pair
(
false
,
Texts
.
get
(
"input_invalid_empty_field"
))
...
...
app/src/main/java/org/lindoor/ui/validators/NonEmptyWithRegExpFormatValidator.kt
View file @
32d0f3a1
...
...
@@ -4,7 +4,7 @@ import android.text.TextUtils
import
org.lindoor.customisation.Texts
class
NonEmptyWithRegExpFormatValidator
(
private
val
reggExp
:
String
,
errorTextKey
:
String
)
:
GenericStringValidator
(
Texts
.
get
(
errorTextKey
)
)
{
GenericStringValidator
(
errorTextKey
)
{
override
fun
validity
(
s
:
CharSequence
):
Pair
<
Boolean
,
String
?
>
{
if
(
TextUtils
.
isEmpty
(
s
))
return
Pair
(
false
,
Texts
.
get
(
"input_invalid_empty_field"
))
...
...
app/src/main/java/org/lindoor/ui/validators/RegExpFormatValidator.kt
View file @
32d0f3a1
...
...
@@ -3,7 +3,7 @@ package org.lindoor.ui.validators
import
org.lindoor.customisation.Texts
class
RegExpFormatValidator
(
private
val
reggExp
:
String
,
errorTextKey
:
String
)
:
GenericStringValidator
(
Texts
.
get
(
errorTextKey
)
)
{
GenericStringValidator
(
errorTextKey
)
{
override
fun
validity
(
s
:
CharSequence
):
Pair
<
Boolean
,
String
?
>
{
if
(!
reggExp
.
toRegex
().
matches
(
s
))
return
Pair
(
false
,
errorText
)
...
...
app/src/main/res/layout/fragment_about.xml
View file @
32d0f3a1
...
...
@@ -19,6 +19,7 @@
<ImageView
android:id=
"@+id/lindoor_icon"
src=
'@{"others/lindoor_icon"}'
android:layout_width=
"0dp"
android:layout_height=
"100dp"
android:scaleType=
"centerInside"
...
...
@@ -27,9 +28,8 @@
app:layout_constraintHorizontal_bias=
"0.5"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_chainStyle=
"packed"
src=
'@{"others/lindoor_icon"}'
/>
app:layout_constraintVertical_bias=
"0.39"
app:layout_constraintVertical_chainStyle=
"packed"
/>
<ImageView
android:id=
"@+id/lindoor_text"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment