从ConversationActivity返回时,请避免显示最近的会话列表

时间:2016-12-10 08:14:11

标签: android applozic

安装Applozic后,一切正常并且运行良好,但当用户点击ConversationActivity时,会显示其对话列表。当用户再次按下时,将显示聊天之前的活动。

在我的情况下,没有必要进行对话列表。有可能避免这一步吗?我在JSON配置文件中搜索过,但我认为没有任何选项可以解决我的问题。

2 个答案:

答案 0 :(得分:1)

为此你需要在意图中传递标志 intent.putExtra(ConversationUIService.TAKE_ORDER,true); 如果此标志为true,那么当您使用意图

启动聊天时,按下后将不会显示会话列表
<div class="col-xs-12" ng-app="myAns" ng-controller="myCtrl">
<table class="table">
<tr><td ng-repeat="fullname in team1_name">{{fullname}}</td></tr>
    <tr><td ng-repeat="strike in team1_strike">{{strike}}</td></tr>
    <tr><td ng-repeat="wickets in team1_wickets">{{wickets}}</td></tr> 
</table>
</div> 

答案 1 :(得分:0)

首先转到ConvertionActivity时,你完成()之前的活动,所以当你支持ConvertionActivity时,你的上一个活动就不会显示出来。

public static boolean arraysMatch(int[] array1, int[] array2) {
    return Collections.indexOfSubList(
        Arrays.asList(ArrayUtils.toObject(ArrayUtils.addAll(array2, array2))),
        Arrays.asList(ArrayUtils.toObject(array1))
    ) != -1;
}