Commit 2fc75b31 by Lee Munkyeong

コードレビュー対応。

parent 65e462e8
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
</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:resizeableActivity="true" android:resizeableActivity="true"
android:supportsPictureInPicture="true"/> android:supportsPictureInPicture="true"/>
......
...@@ -864,7 +864,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co ...@@ -864,7 +864,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
ll_menuItem_chat.setOnClickListener(new View.OnClickListener() { ll_menuItem_chat.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
ActivityHandlingHelper.getInstance().startChatWebviewActivity(); ActivityHandlingHelper.getInstance().startChatWebViewActivity();
mCommunicationMenuDialog.dismiss(); mCommunicationMenuDialog.dismiss();
} }
}); });
...@@ -939,7 +939,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co ...@@ -939,7 +939,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
if(dto.roomName != null && dto.roomId != 0) if(dto.roomName != null && dto.roomId != 0)
{ {
pushMessageLogic.updateReadingFlg(dto.pushMessageId); pushMessageLogic.updateReadingFlg(dto.pushMessageId);
ActivityHandlingHelper.getInstance().startChatWebviewActivityWithPushMessage(dto); ActivityHandlingHelper.getInstance().startChatWebViewActivityWithPushMessage(dto);
mPushMessageListDialog.dismiss(); mPushMessageListDialog.dismiss();
} else { } else {
showPushMessageDetailView(dto); showPushMessageDetailView(dto);
......
...@@ -140,9 +140,9 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity { ...@@ -140,9 +140,9 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
Logger.d("tempDate","date : " + tempDate); Logger.d("tempDate","date : " + tempDate);
} }
if (StringUtil.isNullOrEmpty(collaborationType)) { if (StringUtil.isNullOrEmpty(collaborationType)) {
ActivityHandlingHelper.getInstance().startChatWebviewActivity(roomId, roomName); ActivityHandlingHelper.getInstance().startChatWebViewActivity(roomId, roomName);
} else { } else {
ActivityHandlingHelper.getInstance().startChatWebviewActivityWithCollaboration(roomId, roomName, collaborationType); ActivityHandlingHelper.getInstance().startChatWebViewActivityWithCollaboration(roomId, roomName, collaborationType);
} }
} }
} }
......
...@@ -113,11 +113,11 @@ import static org.chromium.net.NetError.ERR_FAILED; ...@@ -113,11 +113,11 @@ import static org.chromium.net.NetError.ERR_FAILED;
* Created by AIS-NB-048 on 2019/07/31. * Created by AIS-NB-048 on 2019/07/31.
*/ */
public class ChatWebviewActivity extends CommunicationWebViewActivity { public class ChatWebViewActivity extends CommunicationWebViewActivity {
private WebView mChatWebView; private WebView mChatWebView;
private String chatWebviewUrl; private String chatWebviewUrl;
private final String TAG = "ChatWebviewActivity"; private final String TAG = "ChatWebViewActivity";
private final String NETWORK_ERROR_PLACE_HOLDER = "file:///android_asset/chat/public_new/chat.html"; private final String NETWORK_ERROR_PLACE_HOLDER = "file:///android_asset/chat/public_new/chat.html";
//private final String NETWORK_ERROR_PLACE_HOLDER = "file:///android_asset/chat/public/networkError.html"; //private final String NETWORK_ERROR_PLACE_HOLDER = "file:///android_asset/chat/public/networkError.html";
...@@ -325,10 +325,10 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -325,10 +325,10 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
boolean result = false; boolean result = false;
// 画像が選択された場合 // 画像が選択された場合
if (fileChooserParams.getAcceptTypes()[0].toLowerCase().indexOf(ABookKeys.IMAGE) != -1) { if (fileChooserParams.getAcceptTypes()[0].toLowerCase().indexOf(ABookKeys.IMAGE) != -1) {
result = startCameraIntent(103, "Camera", ABookKeys.IMAGE, true); result = startCameraIntent(ABOOK_CHECK_TASK_IMAGE, "Camera", ABookKeys.IMAGE, true);
// 動画が選択された場合 // 動画が選択された場合
} else if (fileChooserParams.getAcceptTypes()[0].toLowerCase().indexOf(ABookKeys.VIDEO) != -1) { } else if (fileChooserParams.getAcceptTypes()[0].toLowerCase().indexOf(ABookKeys.VIDEO) != -1) {
result = startCameraIntent(104, "Camera", ABookKeys.VIDEO, true); result = startCameraIntent(ABOOK_CHECK_TASK_VIDEO, "Camera", ABookKeys.VIDEO, true);
} }
if (result) { if (result) {
if (mUploadMessage != null) { if (mUploadMessage != null) {
...@@ -378,7 +378,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -378,7 +378,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
final String tempMessage = message; final String tempMessage = message;
ABookAlertDialog dialog = AlertDialogUtil.createAlertDialog(ChatWebviewActivity.this, R.string.app_name); ABookAlertDialog dialog = AlertDialogUtil.createAlertDialog(ChatWebViewActivity.this, R.string.app_name);
dialog.setMessage(message); dialog.setMessage(message);
dialog.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { dialog.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
@Override @Override
...@@ -424,7 +424,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -424,7 +424,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
} else if (message.equals("방장 권한을 전달 받으시겠습니까?")){ } else if (message.equals("방장 권한을 전달 받으시겠습니까?")){
message = getString(R.string.msg_confirm_send_host_change); message = getString(R.string.msg_confirm_send_host_change);
} }
ABookAlertDialog confirmAlert = AlertDialogUtil.createAlertDialog(ChatWebviewActivity.this, R.string.app_name); ABookAlertDialog confirmAlert = AlertDialogUtil.createAlertDialog(ChatWebViewActivity.this, R.string.app_name);
confirmAlert.setMessage(message); confirmAlert.setMessage(message);
if (message.equals(getString(R.string.msg_error_already_exist_same_room))) { if (message.equals(getString(R.string.msg_error_already_exist_same_room))) {
...@@ -679,10 +679,10 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -679,10 +679,10 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
// チャット利用のはネットワークが繋がる時のみ // チャット利用のはネットワークが繋がる時のみ
if (ABVEnvironment.getInstance().networkAdapter.isNetworkConnected()) { if (ABVEnvironment.getInstance().networkAdapter.isNetworkConnected()) {
showProgressPopup(); showProgressPopup();
ActivityHandlingHelper.getInstance().startChatWebviewActivity(); ActivityHandlingHelper.getInstance().startChatWebViewActivity();
mCommunicationMenuDialog.dismiss(); mCommunicationMenuDialog.dismiss();
} else { } else {
ABVToastUtil.showMakeText(ChatWebviewActivity.this, R.string.request_network_connection, Toast.LENGTH_SHORT); ABVToastUtil.showMakeText(ChatWebViewActivity.this, R.string.request_network_connection, Toast.LENGTH_SHORT);
return; return;
} }
} }
...@@ -867,7 +867,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -867,7 +867,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
mChatWebView.post(new Runnable() { mChatWebView.post(new Runnable() {
@Override @Override
public void run() { public void run() {
ActivityHandlingHelper.getInstance().startChatWebviewActivity(); ActivityHandlingHelper.getInstance().startChatWebViewActivity();
} }
}); });
...@@ -1406,7 +1406,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -1406,7 +1406,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
} catch (Exception e) { } catch (Exception e) {
mChatWebView.loadUrl("javascript:alert('" + "会議室サーバに接続できませんでした。" + "');"); mChatWebView.loadUrl("javascript:alert('" + "会議室サーバに接続できませんでした。" + "');");
} }
finishBeforeContentListActiviry(); finishBeforeContentListActivity();
PictureInPictureParams.Builder mPipBuilder = new PictureInPictureParams.Builder(); PictureInPictureParams.Builder mPipBuilder = new PictureInPictureParams.Builder();
enterPictureInPictureMode(mPipBuilder.build()); enterPictureInPictureMode(mPipBuilder.build());
startContentListActivity(true); startContentListActivity(true);
...@@ -1425,7 +1425,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -1425,7 +1425,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
} catch (Exception e) { } catch (Exception e) {
mChatWebView.loadUrl("javascript:alert('" + "会議室サーバに接続できませんでした。" + "');"); mChatWebView.loadUrl("javascript:alert('" + "会議室サーバに接続できませんでした。" + "');");
} }
finishBeforeContentListActiviry(); finishBeforeContentListActivity();
PictureInPictureParams.Builder mPipBuilder = new PictureInPictureParams.Builder(); PictureInPictureParams.Builder mPipBuilder = new PictureInPictureParams.Builder();
enterPictureInPictureMode(mPipBuilder.build()); enterPictureInPictureMode(mPipBuilder.build());
startContentListActivity(false); startContentListActivity(false);
...@@ -1440,7 +1440,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -1440,7 +1440,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
@JavascriptInterface @JavascriptInterface
public void exitMeetingRoom() { public void exitMeetingRoom() {
exitMettingRoom(); exitMeetingRoom();
} }
} }
...@@ -1449,22 +1449,22 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -1449,22 +1449,22 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
*/ */
private void backToHome() { private void backToHome() {
mChatWebView.loadUrl("javascript:CHAT.leaveRoom()"); mChatWebView.loadUrl("javascript:CHAT.leaveRoom()");
exitMettingRoom(); exitMeetingRoom();
finish(); finish();
Intent intent = new Intent(); Intent intent = new Intent();
intent.setClass(ChatWebviewActivity.this, OperationListActivity.class); intent.setClass(ChatWebViewActivity.this, OperationListActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TASK); intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent, NaviConsts.Left); startActivity(intent, NaviConsts.Left);
} }
private void finishBeforeContentListActiviry() { private void finishBeforeContentListActivity() {
OperationRelatedContentActivity beforeActiryty = activityHandlingHelper.getActivity(OperationRelatedContentActivity.class); OperationRelatedContentActivity beforeActiryty = activityHandlingHelper.getActivity(OperationRelatedContentActivity.class);
if (beforeActiryty != null) { if (beforeActiryty != null) {
beforeActiryty.finish(); beforeActiryty.finish();
} }
} }
public void exitMettingRoom() { public void exitMeetingRoom() {
if (meetingManager.isConnected() && meetingManager.isOwner()) { if (meetingManager.isConnected() && meetingManager.isOwner()) {
try { try {
meetingManager.deleteMeeting(); meetingManager.deleteMeeting();
...@@ -1478,7 +1478,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -1478,7 +1478,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
private void startContentListActivity(boolean isOwner) { private void startContentListActivity(boolean isOwner) {
Activity targetActivity = activityHandlingHelper.getCurrentActivity(); Activity targetActivity = activityHandlingHelper.getCurrentActivity();
if (targetActivity instanceof ChatWebviewActivity) { if (targetActivity instanceof ChatWebViewActivity) {
Stack<ABVAuthenticatedActivity> stack = activityHandlingHelper.getCurrentActivityStack(); Stack<ABVAuthenticatedActivity> stack = activityHandlingHelper.getCurrentActivityStack();
if (stack.size() > 1){ if (stack.size() > 1){
targetActivity = stack.get(stack.size()-2); targetActivity = stack.get(stack.size()-2);
...@@ -1673,7 +1673,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -1673,7 +1673,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
// 共通資料画面表示 // 共通資料画面表示
private void showCommonContent() { private void showCommonContent() {
Intent intent = new Intent(); Intent intent = new Intent();
intent.setClass(ChatWebviewActivity.this, OperationRelatedContentActivity.class); intent.setClass(ChatWebViewActivity.this, OperationRelatedContentActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
startActivity(intent, NaviConsts.Left); startActivity(intent, NaviConsts.Left);
} }
...@@ -1730,7 +1730,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -1730,7 +1730,7 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
@Override @Override
public void onDestroy(){ public void onDestroy(){
exitMettingRoom(); exitMeetingRoom();
super.onDestroy(); super.onDestroy();
if (receiver != null) { if (receiver != null) {
unregisterReceiver(receiver); unregisterReceiver(receiver);
...@@ -1745,17 +1745,9 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity { ...@@ -1745,17 +1745,9 @@ public class ChatWebviewActivity extends CommunicationWebViewActivity {
case KeyEvent.KEYCODE_BACK: case KeyEvent.KEYCODE_BACK:
backToHome(); backToHome();
eventPrevent = true; eventPrevent = true;
break;
} }
return eventPrevent; return eventPrevent;
} }
@Override
public void onResume() {
super.onResume();
}
@Override
public void onPause() {
super.onPause();
}
} }
...@@ -357,7 +357,7 @@ public class OperationListActivity extends ABVUIActivity { ...@@ -357,7 +357,7 @@ public class OperationListActivity extends ABVUIActivity {
// プッシュメッセージがある場合 // プッシュメッセージがある場合
else if (!StringUtil.isNullOrEmpty(getIntent().getStringExtra(AppDefType.ChatPushMessageKey.roomName)) && else if (!StringUtil.isNullOrEmpty(getIntent().getStringExtra(AppDefType.ChatPushMessageKey.roomName)) &&
getIntent().getLongExtra(AppDefType.ChatPushMessageKey.roomId, '0') > 0) { getIntent().getLongExtra(AppDefType.ChatPushMessageKey.roomId, '0') > 0) {
ActivityHandlingHelper.getInstance().startChatWebviewActivity( ActivityHandlingHelper.getInstance().startChatWebViewActivity(
getIntent().getLongExtra(AppDefType.ChatPushMessageKey.roomId, '0'), getIntent().getLongExtra(AppDefType.ChatPushMessageKey.roomId, '0'),
getIntent().getStringExtra(AppDefType.ChatPushMessageKey.roomName)); getIntent().getStringExtra(AppDefType.ChatPushMessageKey.roomName));
} }
......
...@@ -71,7 +71,7 @@ import jp.agentec.abook.abv.ui.common.constant.NaviConsts; ...@@ -71,7 +71,7 @@ import jp.agentec.abook.abv.ui.common.constant.NaviConsts;
import jp.agentec.abook.abv.ui.common.dialog.ABookAlertDialog; import jp.agentec.abook.abv.ui.common.dialog.ABookAlertDialog;
import jp.agentec.abook.abv.ui.common.util.ABVToastUtil; import jp.agentec.abook.abv.ui.common.util.ABVToastUtil;
import jp.agentec.abook.abv.ui.common.util.AlertDialogUtil; import jp.agentec.abook.abv.ui.common.util.AlertDialogUtil;
import jp.agentec.abook.abv.ui.home.activity.ChatWebviewActivity; import jp.agentec.abook.abv.ui.home.activity.ChatWebViewActivity;
import jp.agentec.abook.abv.ui.home.activity.OperationListActivity; import jp.agentec.abook.abv.ui.home.activity.OperationListActivity;
import jp.agentec.abook.abv.ui.home.activity.OperationMeetingListActivity; import jp.agentec.abook.abv.ui.home.activity.OperationMeetingListActivity;
import jp.agentec.abook.abv.ui.home.activity.OperationRelatedContentActivity; import jp.agentec.abook.abv.ui.home.activity.OperationRelatedContentActivity;
...@@ -246,7 +246,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve ...@@ -246,7 +246,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
// ページの場合、0から始まるのでシーン設定は+1する // ページの場合、0から始まるのでシーン設定は+1する
path += "&startscene=scene" + (intent.getIntExtra(ABVActivity.PAGE, 1) + 1); path += "&startscene=scene" + (intent.getIntExtra(ABVActivity.PAGE, 1) + 1);
} }
// 管理者モードで開く場合、パラメータ追加cr // 管理者モードで開く場合、パラメータ追加
path += "&isManagementMode=true"; path += "&isManagementMode=true";
} }
...@@ -386,7 +386,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve ...@@ -386,7 +386,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
} }
Activity targetActivity = getCurrentActivity(); Activity targetActivity = getCurrentActivity();
if (targetActivity instanceof ChatWebviewActivity) { if (targetActivity instanceof ChatWebViewActivity) {
Stack<ABVAuthenticatedActivity> stack = getCurrentActivityStack(); Stack<ABVAuthenticatedActivity> stack = getCurrentActivityStack();
if (stack.size() > 1){ if (stack.size() > 1){
targetActivity = stack.get(stack.size()-2); targetActivity = stack.get(stack.size()-2);
...@@ -1578,8 +1578,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve ...@@ -1578,8 +1578,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
} }
//プシュメッセージ一覧からチャットに入る //プシュメッセージ一覧からチャットに入る
public void startChatWebviewActivityWithPushMessage(PushMessageDto dto) { public void startChatWebViewActivityWithPushMessage(PushMessageDto dto) {
String className = ChatWebviewActivity.class.getName(); String className = ChatWebViewActivity.class.getName();
boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL; boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL;
Intent intent = new Intent(); Intent intent = new Intent();
...@@ -1603,8 +1603,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve ...@@ -1603,8 +1603,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
for(int i = size-1; i >= 0; i--) { for(int i = size-1; i >= 0; i--) {
ABVAuthenticatedActivity activity = currentActivityStack.elementAt(i); ABVAuthenticatedActivity activity = currentActivityStack.elementAt(i);
if (activity instanceof ChatWebviewActivity) { if (activity instanceof ChatWebViewActivity) {
activity2 = (ChatWebviewActivity) activity; activity2 = (ChatWebViewActivity) activity;
} }
} }
} }
...@@ -1621,8 +1621,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve ...@@ -1621,8 +1621,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
} }
//チャットに入る //チャットに入る
public void startChatWebviewActivity() { public void startChatWebViewActivity() {
String className = ChatWebviewActivity.class.getName(); String className = ChatWebViewActivity.class.getName();
boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL; boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL;
Intent intent = new Intent(); Intent intent = new Intent();
intent.putExtra("chatWebviewUrl",ABVEnvironment.getInstance().acmsAddress + ABVDataCache.getInstance().getUrlPath() + "/chatapi/chat/"); intent.putExtra("chatWebviewUrl",ABVEnvironment.getInstance().acmsAddress + ABVDataCache.getInstance().getUrlPath() + "/chatapi/chat/");
...@@ -1640,8 +1640,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve ...@@ -1640,8 +1640,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
for(int i = size-1; i >= 0; i--) { for(int i = size-1; i >= 0; i--) {
ABVAuthenticatedActivity activity = currentActivityStack.elementAt(i); ABVAuthenticatedActivity activity = currentActivityStack.elementAt(i);
if (activity instanceof ChatWebviewActivity) { if (activity instanceof ChatWebViewActivity) {
activity2 = (ChatWebviewActivity) activity; activity2 = (ChatWebViewActivity) activity;
} }
} }
} }
...@@ -1658,8 +1658,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve ...@@ -1658,8 +1658,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
} }
// プシュメッセージからチャットに入る // プシュメッセージからチャットに入る
public void startChatWebviewActivity(Long roomId, String roomName) { public void startChatWebViewActivity(Long roomId, String roomName) {
String className = ChatWebviewActivity.class.getName(); String className = ChatWebViewActivity.class.getName();
boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL; boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL;
Intent intent = new Intent(); Intent intent = new Intent();
intent.putExtra("chatWebviewUrl",ABVEnvironment.getInstance().acmsAddress + ABVDataCache.getInstance().getUrlPath() + "/chatapi/chat/"); intent.putExtra("chatWebviewUrl",ABVEnvironment.getInstance().acmsAddress + ABVDataCache.getInstance().getUrlPath() + "/chatapi/chat/");
...@@ -1680,8 +1680,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve ...@@ -1680,8 +1680,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
for(int i = size-1; i >= 0; i--) { for(int i = size-1; i >= 0; i--) {
ABVAuthenticatedActivity activity = currentActivityStack.elementAt(i); ABVAuthenticatedActivity activity = currentActivityStack.elementAt(i);
if (activity instanceof ChatWebviewActivity) { if (activity instanceof ChatWebViewActivity) {
activity2 = (ChatWebviewActivity) activity; activity2 = (ChatWebViewActivity) activity;
} }
} }
} }
...@@ -1922,8 +1922,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve ...@@ -1922,8 +1922,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
this.previousOfSettingActivity2 = activity; this.previousOfSettingActivity2 = activity;
} }
public void startChatWebviewActivityWithCollaboration(Long roomId, String roomName, String collaborationType) { public void startChatWebViewActivityWithCollaboration(Long roomId, String roomName, String collaborationType) {
String className = ChatWebviewActivity.class.getName(); String className = ChatWebViewActivity.class.getName();
boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL; boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL;
Intent intent = new Intent(); Intent intent = new Intent();
intent.putExtra("chatWebviewUrl",ABVEnvironment.getInstance().acmsAddress + ABVDataCache.getInstance().getUrlPath() + "/chatapi/chat/"); intent.putExtra("chatWebviewUrl",ABVEnvironment.getInstance().acmsAddress + ABVDataCache.getInstance().getUrlPath() + "/chatapi/chat/");
...@@ -1945,8 +1945,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve ...@@ -1945,8 +1945,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
for (int i = size - 1; i >= 0; i--) { for (int i = size - 1; i >= 0; i--) {
ABVAuthenticatedActivity activity = currentActivityStack.elementAt(i); ABVAuthenticatedActivity activity = currentActivityStack.elementAt(i);
if (activity instanceof ChatWebviewActivity) { if (activity instanceof ChatWebViewActivity) {
activity2 = (ChatWebviewActivity) activity; activity2 = (ChatWebViewActivity) activity;
} }
} }
} }
......
...@@ -57,7 +57,7 @@ import jp.agentec.adf.util.DateTimeUtil; ...@@ -57,7 +57,7 @@ import jp.agentec.adf.util.DateTimeUtil;
import jp.agentec.adf.util.FileUtil; import jp.agentec.adf.util.FileUtil;
public class CommunicationWebViewActivity extends ABVAuthenticatedActivity { public class CommunicationWebViewActivity extends ABVAuthenticatedActivity {
private static final String TAG = "ParentWebViewActivity"; private static final String TAG = "CommunicationWebViewActivity";
private LinearLayout historyLayout; private LinearLayout historyLayout;
private ImageButton addSceneButton; private ImageButton addSceneButton;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment