|
|
|
|
@ -179,7 +179,13 @@ public class HomeActivity extends BaseActivity { |
|
|
|
|
if ((baseLazyFragment instanceof GridFragment) && !sortAdapter.getItem(position).filters.isEmpty()) {// 弹出筛选
|
|
|
|
|
((GridFragment) baseLazyFragment).showFilter(); |
|
|
|
|
} else if (baseLazyFragment instanceof UserFragment) { |
|
|
|
|
showSiteSwitch(); |
|
|
|
|
// showSiteSwitch();
|
|
|
|
|
Intent intent =new Intent(getApplicationContext(), HomeActivity.class); |
|
|
|
|
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); |
|
|
|
|
Bundle bundle = new Bundle(); |
|
|
|
|
bundle.putBoolean("useCache", true); |
|
|
|
|
intent.putExtras(bundle); |
|
|
|
|
HomeActivity.this.startActivity(intent); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -200,6 +206,14 @@ public class HomeActivity extends BaseActivity { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
tvName.setOnClickListener(new View.OnClickListener() { |
|
|
|
|
@Override |
|
|
|
|
public void onClick(View v) { |
|
|
|
|
dataInitOk = false; |
|
|
|
|
jarInitOk = true; |
|
|
|
|
showSiteSwitch(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
setLoadSir(this.contentLayout); |
|
|
|
|
//mHandler.postDelayed(mFindFocus, 500);
|
|
|
|
|
} |
|
|
|
|
@ -566,6 +580,12 @@ public class HomeActivity extends BaseActivity { |
|
|
|
|
@Override |
|
|
|
|
public void click(SourceBean value, int pos) { |
|
|
|
|
ApiConfig.get().setSourceBean(value); |
|
|
|
|
Intent intent =new Intent(getApplicationContext(), HomeActivity.class); |
|
|
|
|
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); |
|
|
|
|
Bundle bundle = new Bundle(); |
|
|
|
|
bundle.putBoolean("useCache", true); |
|
|
|
|
intent.putExtras(bundle); |
|
|
|
|
HomeActivity.this.startActivity(intent); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@ -596,14 +616,14 @@ public class HomeActivity extends BaseActivity { |
|
|
|
|
// getApplicationContext().startActivity(intent);
|
|
|
|
|
// System.exit(0);
|
|
|
|
|
|
|
|
|
|
Intent intent =new Intent(getApplicationContext(), HomeActivity.class); |
|
|
|
|
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); |
|
|
|
|
Bundle bundle = new Bundle(); |
|
|
|
|
bundle.putBoolean("useCache", true); |
|
|
|
|
intent.putExtras(bundle); |
|
|
|
|
HomeActivity.this.startActivity(intent); |
|
|
|
|
// android.os.Process.killProcess(android.os.Process.myPid());
|
|
|
|
|
// System.exit(0);
|
|
|
|
|
|
|
|
|
|
// Intent intent =new Intent(getApplicationContext(), HomeActivity.class);
|
|
|
|
|
// intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
|
|
|
|
// Bundle bundle = new Bundle();
|
|
|
|
|
// bundle.putBoolean("useCache", true);
|
|
|
|
|
// intent.putExtras(bundle);
|
|
|
|
|
// HomeActivity.this.startActivity(intent);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -611,5 +631,4 @@ public class HomeActivity extends BaseActivity { |
|
|
|
|
dialog.show(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |