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
71236118
Commit
71236118
authored
Jun 09, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
43109対応。
parent
b4611929
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
ABVJE_Launcher_Android/AndroidManifest.xml
+1
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
+5
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+5
-13
No files found.
ABVJE_Launcher_Android/AndroidManifest.xml
View file @
71236118
...
@@ -250,6 +250,7 @@
...
@@ -250,6 +250,7 @@
</activity>
</activity>
<activity
android:name=
"jp.agentec.abook.abv.ui.home.activity.ChatWebViewActivity"
android:configChanges=
"screenSize|smallestScreenSize|screenLayout|orientation"
<activity
android:name=
"jp.agentec.abook.abv.ui.home.activity.ChatWebViewActivity"
android:configChanges=
"screenSize|smallestScreenSize|screenLayout|orientation"
android:taskAffinity=
".ChatWebViewActivity"
android:resizeableActivity=
"true"
android:resizeableActivity=
"true"
android:supportsPictureInPicture=
"true"
/>
android:supportsPictureInPicture=
"true"
/>
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
71236118
...
@@ -1659,6 +1659,11 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
...
@@ -1659,6 +1659,11 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
}
}
}
}
public
void
startPIPmode
()
{
PictureInPictureParams
.
Builder
mPipBuilder
=
new
PictureInPictureParams
.
Builder
();
enterPictureInPictureMode
(
mPipBuilder
.
build
());
}
public
void
exitAndDeleteMeetingRoom
()
{
public
void
exitAndDeleteMeetingRoom
()
{
if
(
meetingManager
.
isConnected
()
&&
meetingManager
.
isOwner
())
{
if
(
meetingManager
.
isConnected
()
&&
meetingManager
.
isOwner
())
{
try
{
try
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
71236118
...
@@ -174,11 +174,11 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
...
@@ -174,11 +174,11 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
@Override
@Override
public
void
run
()
{
public
void
run
()
{
try
{
try
{
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_
SINGLE
_TOP
|
intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_
CLEAR
_TOP
|
intent
.
FLAG_ACTIVITY_NEW_TASK
);
if
(
page
!=
null
)
{
if
(
page
!=
null
)
{
intent
.
putExtra
(
ABVActivity
.
PAGE
,
page
);
intent
.
putExtra
(
ABVActivity
.
PAGE
,
page
);
}
}
startContentActivity
(
mContext
,
intent
,
null
,
Intent
.
FLAG_ACTIVITY_
SINGLE
_TOP
|
intent
.
FLAG_ACTIVITY_NEW_TASK
,
contentId
);
startContentActivity
(
mContext
,
intent
,
null
,
Intent
.
FLAG_ACTIVITY_
CLEAR
_TOP
|
intent
.
FLAG_ACTIVITY_NEW_TASK
,
contentId
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
Logger
.
e
(
TAG
,
"startContentActivity contentId="
+
contentId
,
e
);
Logger
.
e
(
TAG
,
"startContentActivity contentId="
+
contentId
,
e
);
showToast
(
mContext
.
getString
(
R
.
string
.
E113
));
showToast
(
mContext
.
getString
(
R
.
string
.
E113
));
...
@@ -385,18 +385,10 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
...
@@ -385,18 +385,10 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
recordContentReadLog
(
context
,
contentId
);
recordContentReadLog
(
context
,
contentId
);
}
}
//
AbookCommの文書協業の場合(ChatWebviewがPIPモードの場合)既存Contextでなく以前のActivityから画面を遷移
する。
//
資料が変更されたらPIPモードに更新
する。
ChatWebViewActivity
chatWebViewActivity
=
getActivity
(
ChatWebViewActivity
.
class
);
ChatWebViewActivity
chatWebViewActivity
=
getActivity
(
ChatWebViewActivity
.
class
);
if
(
chatWebViewActivity
!=
null
&&
chatWebViewActivity
.
isInPictureInPictureMode
())
{
if
(
chatWebViewActivity
!=
null
&&
meetingManager
.
isSubscribed
()
&&
!
chatWebViewActivity
.
isInPictureInPictureMode
())
{
context
=
getCurrentActivity
();
chatWebViewActivity
.
startPIPmode
();
intent
.
removeFlags
(
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
|
intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
);
if
(
context
instanceof
ChatWebViewActivity
)
{
Stack
<
ABVAuthenticatedActivity
>
stack
=
getCurrentActivityStack
();
if
(
stack
.
size
()
>
1
){
context
=
stack
.
get
(
stack
.
size
()-
2
);
}
}
}
}
if
(!
StringUtil
.
equalsAny
(
if
(!
StringUtil
.
equalsAny
(
...
...
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