| | |
| | | import com.dayu.pipirrapp.dao.DaoSingleton; |
| | | import com.dayu.pipirrapp.databinding.ActivitySplashScreenBinding; |
| | | import com.dayu.pipirrapp.utils.CommonData; |
| | | import com.dayu.pipirrapp.utils.CommonKeyName; |
| | | import com.dayu.pipirrapp.utils.SharedPreferencesHelper; |
| | | |
| | | /** |
| | |
| | | setContentView(binding.getRoot()); |
| | | new Handler().postDelayed(() -> { |
| | | LoginBean loginBean = DaoSingleton.getInstance(SplashScreenActivity.this).loginDao().findFirst(); |
| | | String token = SharedPreferencesHelper.getInstance(SplashScreenActivity.this).get(CommonData.Token, ""); |
| | | String token = SharedPreferencesHelper.getInstance(SplashScreenActivity.this).get(CommonKeyName.Token, ""); |
| | | if (loginBean != null && !TextUtils.isEmpty(token)) { |
| | | startMainActivity(); |
| | | MyApplication.myApplication.token = token; |