Permalink
Browse files

Cosmetic change

  • Loading branch information...
hide92795
hide92795 committed Jan 16, 2014
1 parent 3e483ff commit 92d944bd15c769464f4ef044cdcd7ac6f0a6068d
Showing with 604 additions and 384 deletions.
  1. +23 −6 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/AboutActivity.java
  2. +20 −6 ...ontroller_for_Android/src/hide92795/android/remotecontroller/activity/AccountManagerActivity.java
  3. +33 −19 ...roller_for_Android/src/hide92795/android/remotecontroller/activity/AutoUpdateManagerActivity.java
  4. +39 −31 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/ChatActivity.java
  5. +39 −31 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/ConsoleActivity.java
  6. +52 −37 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/DonateActivity.java
  7. +34 −22 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/DynmapActivity.java
  8. +30 −16 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/EditFileActivity.java
  9. +33 −19 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/ItemSelectActivity.java
  10. +81 −73 ...teController_for_Android/src/hide92795/android/remotecontroller/activity/LoginServerActivity.java
  11. +37 −37 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/MainActivity.java
  12. +20 −1 ...eController_for_Android/src/hide92795/android/remotecontroller/activity/NotificationActivity.java
  13. +25 −11 ...eController_for_Android/src/hide92795/android/remotecontroller/activity/OnlinePlayerActivity.java
  14. +33 −19 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/PluginActivity.java
  15. +34 −20 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/PluginInfoActivity.java
  16. +37 −17 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/PreferenceActivity.java
  17. +34 −19 RemoteController_for_Android/src/hide92795/android/remotecontroller/activity/TextEditorActivity.java
@@ -68,21 +68,38 @@ protected void onCreate(Bundle savedInstanceState) {
}
}

@Override
protected void onDestroy() {
super.onDestroy();
LogUtil.d("AboutActivity#onDestroy()");
}

@Override
protected void onStart() {
super.onStart();
LogUtil.d("AboutActivity#onStart()");
GoogleAnalyticsUtil.startActivity(this);
}

@Override
protected void onResume() {
super.onResume();
LogUtil.d("AboutActivity#onResume()");
}

@Override
protected void onPause() {
super.onPause();
LogUtil.d("AboutActivity#onPause()");
}

@Override
protected void onStop() {
super.onStop();
LogUtil.d("AboutActivity#onStop()");
GoogleAnalyticsUtil.stopActivity(this);
}

@Override
protected void onDestroy() {
super.onDestroy();
LogUtil.d("AboutActivity#onDestroy()");
}



}
@@ -27,24 +27,38 @@ protected void onCreate(Bundle savedInstanceState) {
setListener();
}

@Override
protected void onDestroy() {
super.onDestroy();
LogUtil.d("AccountManagerActivity#onDestroy()");
}

@Override
protected void onStart() {
super.onStart();
LogUtil.d("AccountManagerActivity#onStart()");
GoogleAnalyticsUtil.startActivity(this);
}

@Override
protected void onResume() {
super.onResume();
LogUtil.d("AccountManagerActivity#onResume()");
}

@Override
protected void onPause() {
super.onPause();
LogUtil.d("AccountManagerActivity#onPause()");
}

@Override
protected void onStop() {
super.onStop();
LogUtil.d("AccountManagerActivity#onStop()");
GoogleAnalyticsUtil.stopActivity(this);
}

@Override
protected void onDestroy() {
super.onDestroy();
LogUtil.d("AccountManagerActivity#onDestroy()");
}

private void setAdapter() {
ListView list = (ListView) findViewById(R.id.list_account_manager_list);
adapter = new AccountManagerListAdapter((Session) getApplication());
@@ -28,12 +28,44 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LogUtil.d("AutoUpdateManagerActivity#onCreate()");
setContentView(R.layout.activity_auto_update_manager);

setAdapeter();
setListener();
setData();
}

@Override
protected void onStart() {
super.onStart();
LogUtil.d("AutoUpdateManagerActivity#onStart()");
GoogleAnalyticsUtil.startActivity(this);
}

@Override
protected void onResume() {
super.onResume();
LogUtil.d("AutoUpdateManagerActivity#onResume()");
}

@Override
protected void onPause() {
super.onPause();
LogUtil.d("AutoUpdateManagerActivity#onPause()");
((Session) getApplication()).checkAutoUpdate();
}

@Override
protected void onStop() {
super.onStop();
LogUtil.d("AutoUpdateManagerActivity#onStop()");
GoogleAnalyticsUtil.stopActivity(this);
}

@Override
protected void onDestroy() {
super.onDestroy();
LogUtil.d("AutoUpdateManagerActivity#onDestroy()");
}

private void setAdapeter() {
ListView list = (ListView) findViewById(R.id.list_auto_update_manager_list);
list.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
@@ -58,24 +90,6 @@ private void setData() {
edit.setText(String.valueOf(interval_min));
}

@Override
protected void onStart() {
super.onStart();
GoogleAnalyticsUtil.startActivity(this);
}

@Override
protected void onPause() {
super.onPause();
((Session) getApplication()).checkAutoUpdate();
}

@Override
protected void onStop() {
super.onStop();
GoogleAnalyticsUtil.stopActivity(this);
}

@Override
public void onClick(View v) {
switch (v.getId()) {
@@ -42,6 +42,41 @@ protected void onCreate(Bundle savedInstanceState) {
setColor();
}

@Override
protected void onStart() {
super.onStart();
LogUtil.d("ChatActivity#onStart()");
GoogleAnalyticsUtil.startActivity(this);
}

@Override
protected void onResume() {
super.onResume();
LogUtil.d("ChatActivity#onResume()");
((Session) getApplication()).getChatAdapter().setOnAddChatListener(this);
((Session) getApplication()).getChatAdapter().notifyDataSetChanged();
}

@Override
protected void onPause() {
super.onPause();
LogUtil.d("ChatActivity#onPause()");
((Session) getApplication()).getChatAdapter().setOnAddChatListener(null);
}

@Override
protected void onStop() {
super.onStop();
LogUtil.d("ChatActivity#onStop()");
GoogleAnalyticsUtil.stopActivity(this);
}

@Override
protected void onDestroy() {
super.onDestroy();
LogUtil.d("ChatActivity#onDestroy()");
}

private void setListener() {
ListView list = (ListView) findViewById(R.id.list_chat_chat);
list.setAdapter(((Session) getApplication()).getChatAdapter());
@@ -67,31 +102,10 @@ private void setColor() {
list.setBackgroundColor(pref.getInt(ConfigKeys.CHAT_BACKGOUND_COLOR, ConfigDefaults.CHAT_BACKGOUND_COLOR));
}

@Override
protected void onResume() {
super.onResume();
LogUtil.d("ChatActivity#onResume()");
((Session) getApplication()).getChatAdapter().setOnAddChatListener(this);
((Session) getApplication()).getChatAdapter().notifyDataSetChanged();
}

@Override
protected void onPause() {
super.onPause();
LogUtil.d("ChatActivity#onPause()");
((Session) getApplication()).getChatAdapter().setOnAddChatListener(null);
}

@Override
protected void onStart() {
super.onStart();
GoogleAnalyticsUtil.startActivity(this);
}

@Override
protected void onStop() {
super.onStop();
GoogleAnalyticsUtil.stopActivity(this);
private void updateConsoleAdapter() {
ListView list = (ListView) findViewById(R.id.list_chat_chat);
ChatListAdapter adapter = (ChatListAdapter) list.getAdapter();
adapter.notifyDataSetChanged();
}

@Override
@@ -132,12 +146,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
}

private void updateConsoleAdapter() {
ListView list = (ListView) findViewById(R.id.list_chat_chat);
ChatListAdapter adapter = (ChatListAdapter) list.getAdapter();
adapter.notifyDataSetChanged();
}

@Override
public void onClick(View view) {
switch (view.getId()) {
@@ -42,6 +42,41 @@ protected void onCreate(Bundle savedInstanceState) {
setColor();
}

@Override
protected void onStart() {
super.onStart();
LogUtil.d("ConsoleActivity#onStart()");
GoogleAnalyticsUtil.startActivity(this);
}

@Override
protected void onResume() {
super.onResume();
LogUtil.d("ConsoleActivity#onResume()");
((Session) getApplication()).getConsoleAdapter().setOnAddConsoleListener(this);
((Session) getApplication()).getConsoleAdapter().notifyDataSetChanged();
}

@Override
protected void onPause() {
super.onPause();
LogUtil.d("ConsoleActivity#onPause()");
((Session) getApplication()).getConsoleAdapter().setOnAddConsoleListener(null);
}

@Override
protected void onStop() {
super.onStop();
LogUtil.d("ConsoleActivity#onStop()");
GoogleAnalyticsUtil.stopActivity(this);
}

@Override
protected void onDestroy() {
super.onDestroy();
LogUtil.d("ConsoleActivity#onDestroy()");
}

private void setListener() {
ListView list = (ListView) findViewById(R.id.list_console_console);
list.setAdapter(((Session) getApplication()).getConsoleAdapter());
@@ -67,31 +102,10 @@ private void setColor() {
list.setBackgroundColor(pref.getInt(ConfigKeys.CONSOLE_BACKGOUND_COLOR, ConfigDefaults.CONSOLE_BACKGOUND_COLOR));
}

@Override
protected void onResume() {
super.onResume();
LogUtil.d("ConsoleActivity#onResume()");
((Session) getApplication()).getConsoleAdapter().setOnAddConsoleListener(this);
((Session) getApplication()).getConsoleAdapter().notifyDataSetChanged();
}

@Override
protected void onPause() {
super.onPause();
LogUtil.d("ConsoleActivity#onPause()");
((Session) getApplication()).getConsoleAdapter().setOnAddConsoleListener(null);
}

@Override
protected void onStart() {
super.onStart();
GoogleAnalyticsUtil.startActivity(this);
}

@Override
protected void onStop() {
super.onStop();
GoogleAnalyticsUtil.stopActivity(this);
private void updateConsoleAdapter() {
ListView list = (ListView) findViewById(R.id.list_console_console);
ConsoleListAdapter adapter = (ConsoleListAdapter) list.getAdapter();
adapter.notifyDataSetChanged();
}

@Override
@@ -150,12 +164,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
}

private void updateConsoleAdapter() {
ListView list = (ListView) findViewById(R.id.list_console_console);
ConsoleListAdapter adapter = (ConsoleListAdapter) list.getAdapter();
adapter.notifyDataSetChanged();
}

@Override
public void onClick(View view) {
switch (view.getId()) {
Oops, something went wrong.

0 comments on commit 92d944b

Please sign in to comment.