Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
77894f98
Commit
77894f98
authored
Apr 18, 2022
by
onuma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#46276 ログインボタンは常に活性化状態とした
parent
bf9c1677
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
30 deletions
+13
-30
ABVJE_UI_Android/res/layout/ac_login.xml
+0
-11
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/LoginActivity.java
+13
-19
No files found.
ABVJE_UI_Android/res/layout/ac_login.xml
View file @
77894f98
...
...
@@ -113,17 +113,6 @@
android:text=
"@string/login"
android:textColor=
"@color/text_color"
android:visibility=
"visible"
/>
<Button
android:id=
"@+id/btn_login_on"
android:layout_width=
"match_parent"
android:layout_height=
"46dp"
android:layout_gravity=
"center"
android:layout_marginTop=
"10dp"
android:background=
"@drawable/btn_login_on"
android:contentDescription=
"@string/login"
android:text=
"@string/login"
android:textColor=
"@color/text_color"
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/LoginActivity.java
View file @
77894f98
...
...
@@ -98,7 +98,6 @@ public class LoginActivity extends ABVLoginActivity {
private
InputMethodManager
imm
;
private
Button
btnLoginOff
;
private
Button
btnLoginOn
;
private
Button
btnDetail
;
private
CheckBox
chexBoxAgree
;
private
static
String
termsOfUseUrl
=
ABVEnvironment
.
getInstance
().
agree_to_terms_of_use_url
;
...
...
@@ -157,15 +156,8 @@ public class LoginActivity extends ABVLoginActivity {
}
});
// 活性化したログインボタン。
btnLoginOn
=
findViewById
(
R
.
id
.
btn_login_on
);
btnLoginOn
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
tryLogin
();
}
});
// 非活性化したログインボタン
// ログインボタン
btnLoginOff
=
findViewById
(
R
.
id
.
btn_login_off
);
btnLoginOff
.
setVisibility
(
View
.
VISIBLE
);
btnLoginOff
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
...
...
@@ -180,20 +172,14 @@ public class LoginActivity extends ABVLoginActivity {
// 初期化(状態は保存しておく。ログアウトした後に使う)
boolean
agree
=
PreferenceUtil
.
getUserPref
(
LoginActivity
.
this
,
AppDefType
.
PrefName
.
AGREE_STATUS
,
false
);
if
(
agree
)
{
btnLoginOn
.
setVisibility
(
View
.
VISIBLE
);
btnLoginOff
.
setVisibility
(
View
.
GONE
);
chexBoxAgree
.
setChecked
(
true
);
}
chexBoxAgree
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
view
)
{
if
(
chexBoxAgree
.
isChecked
())
{
btnLoginOn
.
setVisibility
(
View
.
VISIBLE
);
btnLoginOff
.
setVisibility
(
View
.
GONE
);
PreferenceUtil
.
putUserPref
(
LoginActivity
.
this
,
AppDefType
.
PrefName
.
AGREE_STATUS
,
true
);
}
else
{
btnLoginOn
.
setVisibility
(
View
.
GONE
);
btnLoginOff
.
setVisibility
(
View
.
VISIBLE
);
PreferenceUtil
.
putUserPref
(
LoginActivity
.
this
,
AppDefType
.
PrefName
.
AGREE_STATUS
,
false
);
}
}
...
...
@@ -204,9 +190,6 @@ public class LoginActivity extends ABVLoginActivity {
chexBoxAgree
.
setVisibility
(
View
.
GONE
);
findViewById
(
R
.
id
.
terms_of_use_text
).
setVisibility
(
View
.
GONE
);
findViewById
(
R
.
id
.
detail
).
setVisibility
(
View
.
GONE
);
// ログインボタン
btnLoginOff
.
setVisibility
(
View
.
GONE
);
btnLoginOn
.
setVisibility
(
View
.
VISIBLE
);
}
//androidバジョン6以上からMAC idではなくandroid固有numberを取得ため、ダイアログで表示
...
...
@@ -461,6 +444,17 @@ public class LoginActivity extends ABVLoginActivity {
return
false
;
}
}
if
(
StringUtil
.
isNullOrWhiteSpace
(
mLoginId
))
{
handleErrorMessageToast
(
ErrorCode
.
E001
);
mEdtLoginId
.
requestFocus
();
return
false
;
}
if
(
StringUtil
.
isNullOrWhiteSpace
(
mPassword
))
{
handleErrorMessageToast
(
ErrorCode
.
E002
);
mEdtPassword
.
requestFocus
();
return
false
;
}
if
(!
StringUtil
.
isNullOrEmpty
(
termsOfUseUrl
))
{
if
(!
chexBoxAgree
.
isChecked
())
{
...
...
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