File tree Expand file tree Collapse file tree
library/base/src/main/java/com/hjq/base Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030import androidx .annotation .Nullable ;
3131import androidx .annotation .StringRes ;
3232import androidx .annotation .StyleRes ;
33- import androidx .core .widget .PopupWindowCompat ;
3433import androidx .lifecycle .Lifecycle ;
3534import androidx .lifecycle .LifecycleOwner ;
3635import androidx .lifecycle .LifecycleRegistry ;
@@ -236,33 +235,6 @@ public <V extends View> V findViewById(@IdRes int id) {
236235 return getContentView ().findViewById (id );
237236 }
238237
239- @ Override
240- public void setWindowLayoutType (int type ) {
241- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
242- super .setWindowLayoutType (type );
243- } else {
244- PopupWindowCompat .setWindowLayoutType (this , type );
245- }
246- }
247-
248- @ Override
249- public int getWindowLayoutType () {
250- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
251- return super .getWindowLayoutType ();
252- } else {
253- return PopupWindowCompat .getWindowLayoutType (this );
254- }
255- }
256-
257- @ Override
258- public void setOverlapAnchor (boolean overlapAnchor ) {
259- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
260- super .setOverlapAnchor (overlapAnchor );
261- } else {
262- PopupWindowCompat .setOverlapAnchor (this , overlapAnchor );
263- }
264- }
265-
266238 /**
267239 * 设置背景遮盖层的透明度
268240 */
You can’t perform that action at this time.
0 commit comments