bugfix: 修复分享框和下拉框的遮挡问题
This commit is contained in:
@@ -27,7 +27,7 @@ public class BaseFloatDialog extends Dialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void addFlag() {
|
private void addFlag() {
|
||||||
getWindow().setType(WindowManager.LayoutParams.FIRST_SYSTEM_WINDOW + 10);
|
getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
|
||||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
|
||||||
| WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION
|
| WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION
|
||||||
| WindowManager.LayoutParams.FLAG_LOCAL_FOCUS_MODE);
|
| WindowManager.LayoutParams.FLAG_LOCAL_FOCUS_MODE);
|
||||||
|
|||||||
@@ -70,8 +70,10 @@ class GridBtnManager(val context: Context, private val container: GridLayout, pr
|
|||||||
generateShareButton(FixableButton(poiType = IMogoTanluProvider.TYPE_DENSE_FOG, title = "浓雾"))
|
generateShareButton(FixableButton(poiType = IMogoTanluProvider.TYPE_DENSE_FOG, title = "浓雾"))
|
||||||
} else {
|
} else {
|
||||||
val btnList = GsonUtil.arrayFromJson(config, FixableButton::class.java)
|
val btnList = GsonUtil.arrayFromJson(config, FixableButton::class.java)
|
||||||
btnList.forEach { btn ->
|
if(btnList!=null&&btnList.isNotEmpty()) {
|
||||||
generateShareButton(btn)
|
btnList.forEach { btn ->
|
||||||
|
generateShareButton(btn)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user