Skip to content

Commit

Permalink
Merge pull request #151 from jinfengf/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jinfengf authored May 15, 2019
2 parents 458fc34 + 5d4cd2a commit 671d65b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
10 changes: 10 additions & 0 deletions chatapp/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### JChat v2.3.0

#### ChangeLog

##### BugFix:
+ 修复表情库无法使用问题
+ 修复用户反馈的一些其他bug

##### NewFeature
+ 新增聊天室功能
21 changes: 10 additions & 11 deletions chatapp/src/main/java/jiguang/chat/activity/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ private void requestPermission() {
Manifest.permission.ACCESS_FINE_LOCATION,
Manifest.permission.ACCESS_WIFI_STATE,
Manifest.permission.RECORD_AUDIO)
.rationale(rationaleListener)
.callback(listener)
.start();
}
Expand Down Expand Up @@ -111,15 +110,15 @@ public void onFailed(int requestCode, List<String> deniedPermissions) {
}
};

private RationaleListener rationaleListener = (requestCode, rationale) -> {
AlertDialog.newBuilder(this)
.setMessage("正常使用JChat需要您打开相关权限.")
.setPositiveButton("是", (dialog, which) -> {
rationale.resume();
})
.setNegativeButton("否", (dialog, which) -> {
rationale.cancel();
}).show();
};
// private RationaleListener rationaleListener = (requestCode, rationale) -> {
// AlertDialog.newBuilder(this)
// .setMessage("正常使用JChat需要您打开相关权限.")
// .setPositiveButton("是", (dialog, which) -> {
// rationale.resume();
// })
// .setNegativeButton("否", (dialog, which) -> {
// rationale.cancel();
// }).show();
// };

}

0 comments on commit 671d65b

Please sign in to comment.