package com.ar.artraceartpro.ui.activity;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.ar.artraceartpro.databinding.ActivitySettingBinding;
import com.ar.artraceartpro.utils.SettingUtils;


public class SettingActivity extends AppCompatActivity {

    private ActivitySettingBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        binding = ActivitySettingBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        initData();
        initEvent();

    }

    private void initData() {

    }

    private void initEvent() {

        binding.back.setOnClickListener(v -> finish());

        binding.version.setText(SettingUtils.getCurrentVersion(this));

        binding.share.setOnClickListener(v -> {
            SettingUtils.shareApp(this);
        });

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        binding = null;
    }
}