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
62dd14c1
Commit
62dd14c1
authored
4 years ago
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不要なログ削除
シーン登録失敗時にシーン画像選択画面非表示されない問題対応
parent
c502b1a8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
4 deletions
+34
-4
ABVJE_UI_Android/src/com/imagepicker/ImageWorker.java
+0
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/util/AlertDialogUtil.java
+18
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/DeviceImageListActivity.java
+10
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/helper/SceneSendHelper.java
+6
-0
No files found.
ABVJE_UI_Android/src/com/imagepicker/ImageWorker.java
View file @
62dd14c1
...
@@ -85,18 +85,14 @@ public abstract class ImageWorker {
...
@@ -85,18 +85,14 @@ public abstract class ImageWorker {
}
}
if
(
mImageCache
!=
null
)
{
if
(
mImageCache
!=
null
)
{
if
(
mImageCache
.
mCacheParams
.
memoryCacheEnabled
)
{
if
(
mImageCache
.
mCacheParams
.
memoryCacheEnabled
)
{
Logger
.
d
(
TAG
,
"mImageCache.mCacheParams.memoryCacheEnabled true"
);
BitmapDrawable
value
=
mImageCache
.
getBitmapFromMemCache
(
String
.
valueOf
(
data
));
BitmapDrawable
value
=
mImageCache
.
getBitmapFromMemCache
(
String
.
valueOf
(
data
));
if
(
value
!=
null
)
{
if
(
value
!=
null
)
{
Logger
.
d
(
TAG
,
"memoryCache get image success"
);
imageView
.
setImageDrawable
(
value
);
imageView
.
setImageDrawable
(
value
);
return
;
return
;
}
}
}
else
if
(
mImageCache
.
mCacheParams
.
diskCacheEnabled
)
{
}
else
if
(
mImageCache
.
mCacheParams
.
diskCacheEnabled
)
{
Logger
.
d
(
TAG
,
"mImageCache.mCacheParams.diskCacheEnabled true"
);
Bitmap
value
=
mImageCache
.
getBitmapFromDiskCache
(
String
.
valueOf
(
data
));
Bitmap
value
=
mImageCache
.
getBitmapFromDiskCache
(
String
.
valueOf
(
data
));
if
(
value
!=
null
)
{
if
(
value
!=
null
)
{
Logger
.
d
(
TAG
,
"diskCache get image success"
);
imageView
.
setImageBitmap
(
value
);
imageView
.
setImageBitmap
(
value
);
return
;
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/util/AlertDialogUtil.java
View file @
62dd14c1
...
@@ -42,6 +42,24 @@ public class AlertDialogUtil {
...
@@ -42,6 +42,24 @@ public class AlertDialogUtil {
alertDialog
.
setMessage
(
message
);
alertDialog
.
setMessage
(
message
);
return
alertDialog
;
return
alertDialog
;
}
}
/**
* 共通ダイアログ表示用(Cancel表示・非表示、OKボタンコールバック)
* @param context コンテキスト
* @param title タイトル 文字列
* @param message メッセージ 文字列
* @param isCancleButtonHidden Cancelボタン表示(false)・非表示(true)
* @param okOnClick OKボタンコールバック
*/
public
static
void
showAlertDialog
(
Context
context
,
String
title
,
String
message
,
boolean
isCancleButtonHidden
,
DialogInterface
.
OnClickListener
okOnClick
)
{
ABookAlertDialog
alertDialog
=
createAlertDialog
(
context
,
title
,
message
);
if
(!
isCancleButtonHidden
)
{
alertDialog
.
setNegativeButton
(
R
.
string
.
cancel
,
null
);
}
alertDialog
.
setCancelable
(
false
);
alertDialog
.
setPositiveButton
(
R
.
string
.
ok
,
okOnClick
);
alertDialog
.
show
();
}
/**
/**
* 共通ダイアログ表示用(OKボタンコールバック、CANCELボタンコールバック)
* 共通ダイアログ表示用(OKボタンコールバック、CANCELボタンコールバック)
...
...
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/DeviceImageListActivity.java
View file @
62dd14c1
...
@@ -434,8 +434,18 @@ public class DeviceImageListActivity extends ABVUIActivity {
...
@@ -434,8 +434,18 @@ public class DeviceImageListActivity extends ABVUIActivity {
@Override
@Override
public
void
run
()
{
public
void
run
()
{
closeProgressPopup
();
closeProgressPopup
();
if
(
mIsBaseSceneUpload
)
{
AlertDialogUtil
.
showAlertDialog
(
DeviceImageListActivity
.
this
,
getString
(
R
.
string
.
app_name
),
errorMessage
,
true
,
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
//OKボタン
activityClose
();
}
});
}
else
{
showSimpleAlertDialog
(
errorMessage
);
showSimpleAlertDialog
(
errorMessage
);
}
}
}
});
});
}
}
...
...
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/helper/SceneSendHelper.java
View file @
62dd14c1
...
@@ -7,6 +7,7 @@ import java.util.ArrayList;
...
@@ -7,6 +7,7 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.common.CommonExecutor
;
import
jp.agentec.abook.abv.bl.common.CommonExecutor
;
import
jp.agentec.abook.abv.bl.common.exception.ABVException
;
import
jp.agentec.abook.abv.bl.common.exception.ABVExceptionCode
;
import
jp.agentec.abook.abv.bl.common.exception.ABVExceptionCode
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
...
@@ -79,6 +80,11 @@ public class SceneSendHelper {
...
@@ -79,6 +80,11 @@ public class SceneSendHelper {
listener
.
sceneSendFailRetry
(
needSendImages
);
listener
.
sceneSendFailRetry
(
needSendImages
);
}
}
break
;
break
;
}
catch
(
ABVException
abve
)
{
Logger
.
e
(
TAG
,
abve
.
toString
());
if
(
abve
.
getCode
()
==
ABVExceptionCode
.
P_E_ACMS_P002
)
{
listener
.
sceneSendFail
(
mContext
.
getString
(
R
.
string
.
P002
));
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
Logger
.
e
(
TAG
,
e
.
toString
());
Logger
.
e
(
TAG
,
e
.
toString
());
listener
.
sceneSendFailRetry
(
needSendImages
);
listener
.
sceneSendFailRetry
(
needSendImages
);
...
...
This diff is collapsed.
Click to expand it.
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