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
d87107ae
Commit
d87107ae
authored
Jun 29, 2021
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Task #43300 API30対応
Android11以上ではToastのsetGravity利用できなくなったので実行しない処理追加
parent
025c9d5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
20 deletions
+26
-20
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/util/ABVToastUtil.java
+4
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/LoginActivity.java
+22
-19
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/util/ABVToastUtil.java
View file @
d87107ae
package
jp
.
agentec
.
abook
.
abv
.
ui
.
common
.
util
;
import
android.content.Context
;
import
android.os.Build
;
import
android.os.Handler
;
import
android.view.Gravity
;
import
android.widget.Toast
;
...
...
@@ -43,7 +44,9 @@ public class ABVToastUtil {
}
else
{
sToast
=
Toast
.
makeText
(
context
.
getApplicationContext
(),
text
,
duration
);
}
sToast
.
setGravity
(
gravity
,
0
,
0
);
if
(
Build
.
VERSION
.
SDK_INT
<
Build
.
VERSION_CODES
.
R
)
{
sToast
.
setGravity
(
gravity
,
0
,
0
);
}
sToast
.
show
();
}
});
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/LoginActivity.java
View file @
d87107ae
package
jp
.
agentec
.
abook
.
abv
.
ui
.
home
.
activity
;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.content.SharedPreferences.Editor
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.view.Gravity
;
import
android.view.KeyEvent
;
import
android.view.View
;
import
android.view.View.OnKeyListener
;
import
android.view.animation.AlphaAnimation
;
import
android.view.animation.Animation
;
import
android.view.animation.Animation.AnimationListener
;
import
android.view.animation.TranslateAnimation
;
import
android.view.inputmethod.InputMethodManager
;
import
android.widget.EditText
;
import
android.widget.ImageButton
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
jp.agentec.abook.abv.bl.acms.client.json.CmsUrlJSON
;
import
jp.agentec.abook.abv.bl.acms.type.DeleteDataType
;
import
jp.agentec.abook.abv.bl.acms.type.LoginMode
;
...
...
@@ -41,24 +60,6 @@ import jp.agentec.abook.abv.ui.common.dialog.ABookAlertDialog;
import
jp.agentec.abook.abv.ui.common.helper.ABVViewUnbindHelper
;
import
jp.agentec.abook.abv.ui.common.util.AlertDialogUtil
;
import
jp.agentec.adf.util.StringUtil
;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.content.SharedPreferences
;
import
android.content.SharedPreferences.Editor
;
import
android.os.Bundle
;
import
android.view.Gravity
;
import
android.view.KeyEvent
;
import
android.view.View
;
import
android.view.View.OnKeyListener
;
import
android.view.animation.AlphaAnimation
;
import
android.view.animation.Animation
;
import
android.view.animation.Animation.AnimationListener
;
import
android.view.animation.TranslateAnimation
;
import
android.view.inputmethod.InputMethodManager
;
import
android.widget.EditText
;
import
android.widget.ImageButton
;
import
android.widget.TextView
;
import
android.widget.Toast
;
/**
* @author Minhyuk Seok
...
...
@@ -701,7 +702,9 @@ public class LoginActivity extends ABVLoginActivity {
clickCount
++;
if
(
clickCount
>=
10
)
{
Toast
t
=
Toast
.
makeText
(
getApplicationContext
(),
getResources
().
getString
(
R
.
string
.
acms_address
),
Toast
.
LENGTH_LONG
);
t
.
setGravity
(
Gravity
.
TOP
,
0
,
0
);
if
(
Build
.
VERSION
.
SDK_INT
<
Build
.
VERSION_CODES
.
R
)
{
t
.
setGravity
(
Gravity
.
TOP
,
0
,
0
);
}
t
.
show
();
clickCount
=
0
;
}
...
...
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