project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadListActivity.java
changeset 6437 4ed58839b13b
parent 6350 41b0a9955c47
child 6485 7586c266b52e
equal deleted inserted replaced
6436:f1a42ba9cab2 6437:4ed58839b13b
     4 
     4 
     5 import android.os.Bundle;
     5 import android.os.Bundle;
     6 import android.support.v4.app.FragmentActivity;
     6 import android.support.v4.app.FragmentActivity;
     7 import android.support.v4.app.FragmentManager;
     7 import android.support.v4.app.FragmentManager;
     8 import android.support.v4.app.FragmentTransaction;
     8 import android.support.v4.app.FragmentTransaction;
       
     9 import android.util.Log;
     9 import android.view.Gravity;
    10 import android.view.Gravity;
    10 import android.view.View;
    11 import android.view.View;
    11 import android.view.View.OnClickListener;
    12 import android.view.View.OnClickListener;
    12 import android.widget.Button;
    13 import android.widget.Button;
    13 import android.widget.FrameLayout;
    14 import android.widget.FrameLayout;
    35 
    36 
    36 		layout = (FrameLayout)findViewById(R.id.downloadFrameLayout);
    37 		layout = (FrameLayout)findViewById(R.id.downloadFrameLayout);
    37 		downloadQueueContainer = (LinearLayout) findViewById(R.id.downloadQueueContainer);
    38 		downloadQueueContainer = (LinearLayout) findViewById(R.id.downloadQueueContainer);
    38 	}
    39 	}
    39 
    40 
       
    41 	public void onDestroy(){
       
    42 		super.onDestroy();
       
    43 		Log.d("tag", "on destroy");
       
    44 	}
       
    45 	
    40 	public void onNewItemSelected(DownloadPackage _task, int x, int minX, int maxX, int size) {
    46 	public void onNewItemSelected(DownloadPackage _task, int x, int minX, int maxX, int size) {
    41 		if(layout != null){
    47 		if(layout != null){
    42 			if(!_task.equals(task)){//if it's a new task refresh the whole thing
    48 			if(!_task.equals(task)){//if it's a new task refresh the whole thing
    43 				task = _task;
    49 				task = _task;
    44 				layout.removeView(infoView);
    50 				layout.removeView(infoView);