|
|
@@ -11,13 +11,16 @@ import androidx.recyclerview.widget.GridLayoutManager; |
|
|
|
|
|
|
|
import android.util.DisplayMetrics; |
|
|
|
import android.view.KeyEvent; |
|
|
|
import android.view.MotionEvent; |
|
|
|
|
|
|
|
import com.apkfuns.logutils.LogUtils; |
|
|
|
import com.bonait.bnframework.MainApplication; |
|
|
|
import com.bonait.bnframework.R; |
|
|
|
import com.bonait.bnframework.business.MainInit; |
|
|
|
import com.bonait.bnframework.common.base.BaseActivity; |
|
|
|
import com.bonait.bnframework.common.constant.ConfigName; |
|
|
|
import com.bonait.bnframework.common.constant.Constants; |
|
|
|
import com.bonait.bnframework.common.helper.CrashHandler; |
|
|
|
import com.bonait.bnframework.common.utils.ScreenUtils; |
|
|
|
import com.bonait.bnframework.manager.ActivityLifecycleManager; |
|
|
|
import com.bonait.bnframework.modules.home.activity.BottomNavigation2Activity; |
|
|
@@ -40,11 +43,18 @@ public class WelcomeActivity extends BaseActivity { |
|
|
|
private final static int SELECT_MODE = 2; |
|
|
|
private OkHttpClient.Builder builder; |
|
|
|
|
|
|
|
@Override |
|
|
|
public boolean onTouchEvent(MotionEvent event) { |
|
|
|
return true; |
|
|
|
// return super.onTouchEvent(event); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
protected void onCreate(Bundle savedInstanceState) { |
|
|
|
super.onCreate(savedInstanceState); |
|
|
|
setContentView(R.layout.activity_welcome); |
|
|
|
|
|
|
|
CrashHandler.getInstance().init(MainApplication.getContext()); |
|
|
|
DisplayMetrics dm = new DisplayMetrics(); |
|
|
|
getWindowManager().getDefaultDisplay().getMetrics(dm); |
|
|
|
int miDisplayWidth = dm.widthPixels; |
|
|
@@ -110,8 +120,13 @@ public class WelcomeActivity extends BaseActivity { |
|
|
|
handler.postDelayed(new Runnable() { |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
//判断token |
|
|
|
doPost(); |
|
|
|
try{ |
|
|
|
//判断token |
|
|
|
doPost(); |
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, 2000); |
|
|
|
} |
|
|
@@ -242,10 +257,11 @@ public class WelcomeActivity extends BaseActivity { |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public boolean onKeyDown(int keyCode, KeyEvent event) { |
|
|
|
if (keyCode == KeyEvent.KEYCODE_BACK) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
return super.onKeyDown(keyCode, event); |
|
|
|
return true; |
|
|
|
// if (keyCode == KeyEvent.KEYCODE_BACK) { |
|
|
|
// return true; |
|
|
|
// } |
|
|
|
// return super.onKeyDown(keyCode, event); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|