| | |
| | | import android.content.Intent; |
| | | import android.os.Bundle; |
| | | import android.os.SystemClock; |
| | | import android.text.TextUtils; |
| | | import android.util.Log; |
| | | |
| | | import androidx.annotation.Nullable; |
| | |
| | | setStatusBarTextColor(); |
| | | //初始化服务器域名(用户注册所在服务器域名地址) |
| | | AppConfigManage.setUserRegionUrl(HDLLinkPMUser.getInstance().getUserRegionUrl()); |
| | | //7天内免登录 |
| | | if (UserConfigManage.getInstance().isAutoLogin()) { |
| | | //判断AccessToken是否null |
| | | if (!TextUtils.isEmpty(HDLLinkPMUser.getInstance().getAccessToken())) { |
| | | // showLoading(); |
| | | HdlResidenceLogic.getInstance().getResidenceIdList("", "", new CloudCallBeak<List<HouseIdBean>>() { |
| | | @Override |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void startActivity(Intent intent) { |
| | | super.startActivity(intent); |
| | | overridePendingTransition(0, 0); |
| | | } |
| | | |
| | | void openActivity(Intent intent) { |
| | | intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); |
| | | startActivity(intent); |
| | | finish(); |
| | | } |
| | | |
| | | @Override |
| | | protected void onCreate(@Nullable Bundle savedInstanceState) { |
| | | super.onCreate(savedInstanceState); |
| | | setTheme(R.style.NoAnimationTheme); |
| | | } |
| | | |
| | | @Override |
| | | protected void onDestroy() { |
| | | super.onDestroy(); |
| | | overridePendingTransition(0, 0); |
| | | } |
| | | } |
| | | } |