project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadListActivity.java
changeset 6485 7586c266b52e
parent 6437 4ed58839b13b
child 6842 2e6391f33204
equal deleted inserted replaced
6484:617e9d606e28 6485:7586c266b52e
    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