File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
assists/src/main/java/com/ven/assists/window Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,7 @@ object AssistsWindowManager {
256256 withContext(Dispatchers .Main ) {
257257 viewList.values.forEach {
258258 it.layoutParams.flags = flag
259+ updateViewLayout(it.view, it.layoutParams)
259260 }
260261 }
261262 }
@@ -356,6 +357,13 @@ object AssistsWindowManager {
356357 viewList.values.forEach { it.nonTouchableByWrapper() }
357358 }
358359
360+ fun WindowManager.LayoutParams.focusInput () {
361+ flags = (WindowManager .LayoutParams .FLAG_WATCH_OUTSIDE_TOUCH
362+ or WindowManager .LayoutParams .FLAG_NOT_TOUCH_MODAL or WindowManager .LayoutParams .FLAG_LAYOUT_NO_LIMITS
363+ or WindowManager .LayoutParams .FLAG_LAYOUT_IN_SCREEN )
364+ }
365+
366+
359367 /* *
360368 * 设置布局参数为可触摸状态
361369 */
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ buildscript {
1010
1111 // 应用版本
1212 versionCode = 11
13- versionName = " 3.2.171 "
14- mavenVersion = " 3.2.171 "
13+ versionName = " 3.2.172 "
14+ mavenVersion = " 3.2.172 "
1515
1616 // 依赖库版本
1717 coreKtxVersion = " 1.13.1"
You can’t perform that action at this time.
0 commit comments