|
|
@ -86,26 +86,24 @@ import android.content.SharedPreferences.Editor; |
|
|
|
import android.os.Bundle; |
|
|
|
import android.os.Bundle; |
|
|
|
import android.os.Handler; |
|
|
|
import android.os.Handler; |
|
|
|
import android.preference.PreferenceManager; |
|
|
|
import android.preference.PreferenceManager; |
|
|
|
import android.support.v4.app.ActionBar.OnNavigationListener; |
|
|
|
|
|
|
|
import android.support.v4.app.Fragment; |
|
|
|
import android.support.v4.app.Fragment; |
|
|
|
import android.support.v4.app.FragmentTransaction; |
|
|
|
import android.support.v4.app.FragmentTransaction; |
|
|
|
|
|
|
|
import android.support.v4.app.ActionBar.OnNavigationListener; |
|
|
|
import android.support.v4.view.Menu; |
|
|
|
import android.support.v4.view.Menu; |
|
|
|
import android.support.v4.view.MenuItem; |
|
|
|
import android.support.v4.view.MenuItem; |
|
|
|
import android.support.v4.view.SubMenu; |
|
|
|
import android.support.v4.view.SubMenu; |
|
|
|
import android.view.ContextMenu; |
|
|
|
import android.view.ContextMenu; |
|
|
|
import android.view.ContextMenu.ContextMenuInfo; |
|
|
|
|
|
|
|
import android.view.GestureDetector; |
|
|
|
import android.view.GestureDetector; |
|
|
|
import android.view.GestureDetector.SimpleOnGestureListener; |
|
|
|
|
|
|
|
import android.view.LayoutInflater; |
|
|
|
import android.view.LayoutInflater; |
|
|
|
import android.view.MenuInflater; |
|
|
|
import android.view.MenuInflater; |
|
|
|
import android.view.MotionEvent; |
|
|
|
import android.view.MotionEvent; |
|
|
|
import android.view.View; |
|
|
|
import android.view.View; |
|
|
|
|
|
|
|
import android.view.ViewGroup; |
|
|
|
|
|
|
|
import android.view.ContextMenu.ContextMenuInfo; |
|
|
|
|
|
|
|
import android.view.GestureDetector.SimpleOnGestureListener; |
|
|
|
import android.view.View.OnClickListener; |
|
|
|
import android.view.View.OnClickListener; |
|
|
|
import android.view.View.OnTouchListener; |
|
|
|
import android.view.View.OnTouchListener; |
|
|
|
import android.view.ViewGroup; |
|
|
|
|
|
|
|
import android.widget.AdapterView; |
|
|
|
import android.widget.AdapterView; |
|
|
|
import android.widget.AdapterView.AdapterContextMenuInfo; |
|
|
|
|
|
|
|
import android.widget.AdapterView.OnItemClickListener; |
|
|
|
|
|
|
|
import android.widget.ArrayAdapter; |
|
|
|
import android.widget.ArrayAdapter; |
|
|
|
import android.widget.Button; |
|
|
|
import android.widget.Button; |
|
|
|
import android.widget.EditText; |
|
|
|
import android.widget.EditText; |
|
|
@ -116,6 +114,8 @@ import android.widget.SpinnerAdapter; |
|
|
|
import android.widget.TableLayout; |
|
|
|
import android.widget.TableLayout; |
|
|
|
import android.widget.TextView; |
|
|
|
import android.widget.TextView; |
|
|
|
import android.widget.Toast; |
|
|
|
import android.widget.Toast; |
|
|
|
|
|
|
|
import android.widget.AdapterView.AdapterContextMenuInfo; |
|
|
|
|
|
|
|
import android.widget.AdapterView.OnItemClickListener; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* The main screen for the Transdroid application and provides most on-the-surface functionality |
|
|
|
* The main screen for the Transdroid application and provides most on-the-surface functionality |
|
|
@ -335,6 +335,9 @@ public class TorrentsFragment extends Fragment implements IDaemonCallback, OnTou |
|
|
|
// Start the alarm service, if needed
|
|
|
|
// Start the alarm service, if needed
|
|
|
|
BootReceiver.startAlarm(getActivity().getApplicationContext()); |
|
|
|
BootReceiver.startAlarm(getActivity().getApplicationContext()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Check for new app version, if needed
|
|
|
|
|
|
|
|
BootReceiver.startUpdateCheck(getActivity().getApplicationContext()); |
|
|
|
|
|
|
|
|
|
|
|
handleIntent(getActivity().getIntent()); |
|
|
|
handleIntent(getActivity().getIntent()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|