Skip to content

Commit

Permalink
优化细节
Browse files Browse the repository at this point in the history
  • Loading branch information
princekin-f committed Feb 5, 2020
1 parent 1675059 commit 3cbf87f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ allprojects {
- **在应用模块的`build.gradle`添加:**
```
dependencies {
implementation 'com.github.princekin-f:EasyFloat:1.2.8'
implementation 'com.github.princekin-f:EasyFloat:1.2.9'
}
```

Expand Down
3 changes: 3 additions & 0 deletions UpdateDoc.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## 版本更新日志
#### v 1.2.9:
- [优化细节。](https://github.com/princekin-f/EasyFloat/issues/57)

#### v 1.2.8:
- 优化细节。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ internal class PermissionFragment : Fragment() {

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
if (requestCode == PermissionUtils.requestCode) {
val activity = activity ?: return
// 需要延迟执行,不然即使授权,仍有部分机型获取不到权限
Handler(Looper.getMainLooper()).postDelayed({
val activity = activity ?: return@postDelayed
val check = PermissionUtils.checkPermission(activity)
Logger.i("PermissionFragment onActivityResult: $check")
// 回调权限结果
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ abstract class AbstractDragFloatingView(
tempX = pair.first
tempY = pair.second
}
else -> {
}
else -> Unit
}
// 更新位置
x = tempX
Expand Down
Binary file modified example/release/EasyFloat.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ class SecondActivity : Activity() {
openThird.setOnClickListener {
startActivity(Intent(this, ThirdActivity::class.java))
}


}

}

0 comments on commit 3cbf87f

Please sign in to comment.