| | |
| | | |
| | | ActivityLoginBinding binding; |
| | | PassWordBean passWordBean; |
| | | // com.dayu.qihealonelibrary.dbBean.PassWordBean |
| | | int clickNumber; |
| | | |
| | | @Override |
| | |
| | | super.onCreate(savedInstanceState); |
| | | binding = ActivityLoginBinding.inflate(LayoutInflater.from(this)); |
| | | setContentView(binding.getRoot()); |
| | | getPermission(); |
| | | initView(); |
| | | if (MyApplication.myApplication.libraryType == BaseCommon.NoLibrary) { |
| | | choesLibrary(); |
| | | //没有选择版本先选择版本 |
| | | } |
| | | getPermission(); |
| | | |
| | | } |
| | | |
| | | private void initView() { |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取通用权限 |
| | | */ |
| | | private void getPermission() { |
| | | try { |
| | | XXPermissions.with(this) |
| | |
| | | file.mkdirs(); |
| | | } |
| | | passWordBean = BaseDaoSingleton.getInstance(LoginActivity.this).loginPsDao().findFirst(); |
| | | if (MyApplication.myApplication.libraryType == BaseCommon.NoLibrary) { |
| | | choesLibrary(); |
| | | //没有选择版本先选择版本 |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | } |
| | | |
| | | long mExitTime; |
| | | |
| | | @Override |
| | | public boolean onKeyDown(int keyCode, KeyEvent event) { |
| | | if (keyCode == KeyEvent.KEYCODE_BACK) { |