|
@@ -10,6 +10,7 @@ import android.view.animation.LinearInterpolator
|
|
|
import android.view.animation.RotateAnimation
|
|
|
import android.widget.RelativeLayout
|
|
|
import androidx.fragment.app.FragmentManager
|
|
|
+import com.develop.base.ext.isBrand062
|
|
|
import com.develop.base.mvvm.FullScreenTransparentDialog
|
|
|
import com.develop.base.util.ThreadUtils
|
|
|
import com.develop.base.util.TopResumedAtyHolder
|
|
@@ -25,6 +26,7 @@ class RecipeUpdateDialog() : FullScreenTransparentDialog() {
|
|
|
var type = "UPDATE_TIPS";
|
|
|
|
|
|
var msg = ""
|
|
|
+ var is062 = isBrand062()
|
|
|
|
|
|
override fun onCreateView(
|
|
|
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
|
|
@@ -74,7 +76,11 @@ class RecipeUpdateDialog() : FullScreenTransparentDialog() {
|
|
|
val layoutParams = binding.tvYes.layoutParams as RelativeLayout.LayoutParams;
|
|
|
layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL)
|
|
|
binding.tvCancel.layoutParams = layoutParams
|
|
|
+ if (is062){
|
|
|
+ binding.tvYes.setBackgroundResource(R.drawable.dialog_recipes_cancel)
|
|
|
+ }
|
|
|
binding.tvYes.text = getString(R.string.stop)
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if (type == "SUCCESS") {
|
|
@@ -87,6 +93,9 @@ class RecipeUpdateDialog() : FullScreenTransparentDialog() {
|
|
|
layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL)
|
|
|
binding.tvCancel.layoutParams = layoutParams
|
|
|
binding.tvYes.text = getString(R.string.ok)
|
|
|
+ if (is062){
|
|
|
+ binding.tvYes.setBackgroundResource(R.drawable.dialog_recipes_download)
|
|
|
+ }
|
|
|
}
|
|
|
val animation = RotateAnimation(
|
|
|
0f,
|