Commit a243943d authored by wanglei's avatar wanglei

=====节假日加班======

parent 749f7c96
package com.test.basd.supercleanermax.activity
import android.content.Intent
import android.net.Uri
import com.test.basd.supercleanermax.databinding.ActivitySettingBinding
import com.test.basd.supercleanermax.display.NotificationService
import com.test.basd.supercleanermax.display.fcm.FcmHelper
......@@ -24,9 +25,9 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
override fun initListener() {
binding.ivBack.setOnClickListener {
AdmobUtils.showInterstitialAd(this) {
finishToMain()
}
// AdmobUtils.showInterstitialAd(this) {
finishToMain()
// }
}
binding.switchRemainNotification.setOnCheckedChangeListener { buttonView, isChecked ->
remainNotification = isChecked
......@@ -41,6 +42,13 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>() {
allNotification = isChecked
switchFcm(isChecked)
}
binding.cardPrivacy.setOnClickListener {
val intent = Intent(
Intent.ACTION_VIEW,
Uri.parse("https://sites.google.com/view/super-cleaner-max/super-cleaner-max")
)
startActivity(intent)
}
}
private fun switchFcm(checked: Boolean) {
......
......@@ -94,5 +94,30 @@
app:thumbTint="@color/white"
app:track="@drawable/bg_switch_track"
app:trackTint="@color/color_switch_track_selector" />
</androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView
android:id="@+id/card_privacy"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="20dp"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="15dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="12dp"
android:text="Privacy Policy"
android:textColor="@color/black"
android:textSize="16sp"
tools:ignore="HardcodedText" />
</androidx.cardview.widget.CardView>
</LinearLayout>
\ 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