project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadListActivity.java
equal
deleted
inserted
replaced
34 // fm.beginTransaction().add(android.R.id.content, listfrag).commit(); |
34 // fm.beginTransaction().add(android.R.id.content, listfrag).commit(); |
35 //} |
35 //} |
36 |
36 |
37 layout = (FrameLayout)findViewById(R.id.downloadFrameLayout); |
37 layout = (FrameLayout)findViewById(R.id.downloadFrameLayout); |
38 downloadQueueContainer = (LinearLayout) findViewById(R.id.downloadQueueContainer); |
38 downloadQueueContainer = (LinearLayout) findViewById(R.id.downloadQueueContainer); |
39 } |
|
40 |
|
41 public void onDestroy(){ |
|
42 super.onDestroy(); |
|
43 Log.d("tag", "on destroy"); |
|
44 } |
39 } |
45 |
40 |
46 public void onNewItemSelected(DownloadPackage _task, int x, int minX, int maxX, int size) { |
41 public void onNewItemSelected(DownloadPackage _task, int x, int minX, int maxX, int size) { |
47 if(layout != null){ |
42 if(layout != null){ |
48 if(!_task.equals(task)){//if it's a new task refresh the whole thing |
43 if(!_task.equals(task)){//if it's a new task refresh the whole thing |