Commit ad5da152 authored by wanglei's avatar wanglei

...

parent 0abd8be8
package com.base.browserwhite.ads
import android.app.AlertDialog
import android.content.Context
import android.view.LayoutInflater
import com.base.browserwhite.R
import com.base.browserwhite.databinding.DialogDeleteTipBinding
object AdDialog {
fun Context.showAdPreparingDialog() {
val binding = DialogDeleteTipBinding.inflate(LayoutInflater.from(this))
val dialog = AlertDialog.Builder(this).create()
dialog.setView(binding.root)
dialog.show()
val params = dialog.window?.attributes
params?.width = resources.getDimensionPixelOffset(R.dimen.dp_335)
dialog.window?.attributes = params
dialog.window?.setBackgroundDrawableResource(android.R.color.transparent)
}
}
\ No newline at end of file
...@@ -72,6 +72,7 @@ class SearchActivity : BaseActivity<ActivitySearchBinding>() { ...@@ -72,6 +72,7 @@ class SearchActivity : BaseActivity<ActivitySearchBinding>() {
}) })
} else { } else {
RxBus.get().post(CHANGE_SEARCH_URL, link) RxBus.get().post(CHANGE_SEARCH_URL, link)
overridePendingTransition(0, 0)
} }
finish() finish()
} }
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment