|
|
@@ -68,7 +68,7 @@ import static com.sheep.gamegroup.view.adapter.TryMakeMoneyAdp.PUBLIC_TAG_PREFIX
|
|
|
* Created by realicing on 2018/9/6.
|
|
|
* realicing@sina.com
|
|
|
*/
|
|
|
-public class ActMain extends BaseActYmPermissionCheck {
|
|
|
+public class ActMain extends BaseActYmPermissionCheck {
|
|
|
@Override
|
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
|
|
StatusBarUtils.setTranslucent(this);
|
|
|
@@ -95,13 +95,13 @@ public class ActMain extends BaseActYmPermissionCheck {
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && G.checkDeviceHasNavigationBar(this)) {
|
|
|
//一定要判断是否存在按键,否则在没有按键的手机调用会影响别的功能。如之前没有考虑到,导致图传全屏变成小屏显示。
|
|
|
int flag =
|
|
|
- View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
|
|
|
- View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
|
|
|
- View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
|
|
|
- View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | // hide
|
|
|
- View.SYSTEM_UI_FLAG_FULLSCREEN | // hide status bar
|
|
|
- View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
|
|
- ;
|
|
|
+// View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
|
|
|
+ View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR |
|
|
|
+ View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
|
|
|
+ View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
|
|
|
+ View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | // hide
|
|
|
+// View.SYSTEM_UI_FLAG_FULLSCREEN | // hide status bar
|
|
|
+ View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
|
|
|
// 获取属性
|
|
|
decorView.setSystemUiVisibility(flag);
|
|
|
}
|
|
|
@@ -356,7 +356,7 @@ public class ActMain extends BaseActYmPermissionCheck {
|
|
|
} else {
|
|
|
new DialogGameOrTaskOrGift(this, game_id).showDialog();
|
|
|
}
|
|
|
- } else if(action instanceof MainTab){
|
|
|
+ } else if (action instanceof MainTab) {
|
|
|
view_pager_container.setCurrentItem(((MainTab) action).ordinal(), false);
|
|
|
}
|
|
|
}
|
|
|
@@ -440,7 +440,7 @@ public class ActMain extends BaseActYmPermissionCheck {
|
|
|
public void onEventMainThread(Intent intent) {
|
|
|
if (intent != null && intent.getAction() != null && intent.getDataString() != null && intent.getDataString().contains("package:")) {
|
|
|
String packageName = intent.getDataString().replace("package:", "");
|
|
|
- if(progressView != null) {
|
|
|
+ if (progressView != null) {
|
|
|
TextView tvProgress = progressView.findViewWithTag(PUBLIC_TAG_PREFIX_TEXTVIEW_LIST + url);
|
|
|
if (tvProgress != null && downloadHelper != null && TextUtils.equals(packageName, this.packageName)) {
|
|
|
switch (intent.getAction()) {
|