移除阅读模块、修改数据库为原创

This commit is contained in:
huangzhuanghua
2016-06-12 19:01:32 +08:00
parent 3d5e2096da
commit 8a45656f39
34 changed files with 200 additions and 6565 deletions

View File

@ -66,7 +66,6 @@ import com.gh.gamecenter.manager.PackageManager;
import com.gh.gamecenter.manager.SuspectedGameManager;
import com.gh.gamecenter.personal.PersonalFragment;
import com.gh.gamecenter.plugin.PluginFragment;
import com.gh.gamecenter.read.ReadFragment;
import com.gh.gamecenter.volley.extended.JsonArrayExtendedRequest;
import com.gh.gamecenter.volley.extended.JsonObjectExtendedRequest;
import com.google.gson.Gson;
@ -109,10 +108,9 @@ public class MainActivity extends BaseFragmentActivity implements
private HomeFragment home1Fragment;
private PluginFragment pluginFragmentActivity;
private PersonalFragment home3Fragment;
private ReadFragment readFragment;
private View home1Layout, home2Layout, home3Layout, home4Layout;
private ImageView home1Image, home2Image, home3Image, home4Image;
private TextView home1Title, home2Title, home3Title, home4Title;
private View home1Layout, home2Layout, home3Layout;
private ImageView home1Image, home2Image, home3Image;
private TextView home1Title, home2Title, home3Title;
private SharedPreferences sp;
@ -919,19 +917,15 @@ public class MainActivity extends BaseFragmentActivity implements
home1Layout = findViewById(R.id.home1_layout);
home2Layout = findViewById(R.id.home2_layout);
home3Layout = findViewById(R.id.home3_layout);
home4Layout = findViewById(R.id.home4_layout);
home1Image = (ImageView) findViewById(R.id.message_image);
home2Image = (ImageView) findViewById(R.id.contacts_image);
home3Image = (ImageView) findViewById(R.id.news_image);
home4Image = (ImageView) findViewById(R.id.read_image);
home1Title = (TextView) findViewById(R.id.message_title);
home2Title = (TextView) findViewById(R.id.contacts_title);
home3Title = (TextView) findViewById(R.id.news_title);
home4Title = (TextView) findViewById(R.id.read_title);
home1Layout.setOnClickListener(this);
home2Layout.setOnClickListener(this);
home3Layout.setOnClickListener(this);
home4Layout.setOnClickListener(this);
}
@Override
@ -952,10 +946,6 @@ public class MainActivity extends BaseFragmentActivity implements
EventBus.getDefault().post(new EBUISwitch("MainActivity", 2));
setTabSelection(2);
break;
case R.id.home4_layout:
EventBus.getDefault().post(new EBUISwitch("MainActivity", 3));
setTabSelection(3);
break;
default:
break;
}
@ -1003,17 +993,6 @@ public class MainActivity extends BaseFragmentActivity implements
transaction.show(home3Fragment);
}
break;
case 3:
home4Layout.setClickable(false);
home4Image.setImageResource(R.drawable.home4_selected);
home4Title.setTextColor(getResources().getColor(R.color.theme_colors));
if (readFragment == null) {
readFragment = new ReadFragment();
transaction.add(R.id.main_content, readFragment);
} else {
transaction.show(readFragment);
}
break;
default:
break;
}
@ -1027,15 +1006,12 @@ public class MainActivity extends BaseFragmentActivity implements
home1Layout.setClickable(true);
home2Layout.setClickable(true);
home3Layout.setClickable(true);
home4Layout.setClickable(true);
home1Image.setImageResource(R.drawable.home1_unselected);
home2Image.setImageResource(R.drawable.home2_unselected);
home3Image.setImageResource(R.drawable.home3_unselected);
home4Image.setImageResource(R.drawable.home4_unselected);
home1Title.setTextColor(0xFF333333);
home2Title.setTextColor(0xFF333333);
home3Title.setTextColor(0xFF333333);
home4Title.setTextColor(0xFF333333);
}
/**
@ -1051,9 +1027,6 @@ public class MainActivity extends BaseFragmentActivity implements
if (home1Fragment != null) {
transaction.hide(home1Fragment);
}
if (readFragment != null) {
transaction.hide(readFragment);
}
}
private void uploadData(String id, String platform) {
@ -1212,19 +1185,15 @@ public class MainActivity extends BaseFragmentActivity implements
home1Fragment = null;
pluginFragmentActivity = null;
home3Fragment = null;
readFragment = null;
home1Layout = null;
home2Layout = null;
home3Layout = null;
home4Layout = null;
home1Image = null;
home2Image = null;
home3Image = null;
home4Image = null;
home1Title = null;
home2Title = null;
home3Title = null;
home4Title = null;
sp = null;
entryMap = null;
doneMap = null;