package com.phlx.wool.ui.sync.activity;

import android.os.Bundle;

import androidx.lifecycle.ViewModelProviders;

import com.phlx.wool.BR;
import com.phlx.wool.R;
import com.phlx.wool.data.VMFactory;
import com.phlx.wool.databinding.ActivityClearBinding;
import com.phlx.wool.ui.base.BaseActivity;
import com.phlx.wool.ui.sync.vm.ClearVM;


/**
 * <pre>
 *     author : lei
 *     e-mail : 18600395998@163.com
 *     time   : 2020/04/29
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class ClearActivity extends BaseActivity<ActivityClearBinding, ClearVM> {
    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_clear;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }


    @Override
    public ClearVM initViewModel() {
        VMFactory factory = VMFactory.getInstance(getApplication());
        return ViewModelProviders.of(this, factory).get(ClearVM.class);
    }

    @Override
    public void initData() {
        super.initData();
        setSupportActionBar(binding.include.toolbar);
        viewModel.initToolbar();
    }
}
