Browse Source

- hide search view

- added background task downloadRemoteRssItem()
pull/313/head
twig 9 years ago
parent
commit
b503614f4d
  1. 8
      app/src/main/java/org/transdroid/core/gui/remoterss/RemoteRssFragment.java
  2. 22
      app/src/main/res/layout/activity_remoterss.xml

8
app/src/main/java/org/transdroid/core/gui/remoterss/RemoteRssFragment.java

@ -27,6 +27,7 @@ import com.nispok.snackbar.Snackbar; @@ -27,6 +27,7 @@ import com.nispok.snackbar.Snackbar;
import com.nispok.snackbar.SnackbarManager;
import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Background;
import org.androidannotations.annotations.Bean;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.InstanceState;
@ -113,8 +114,13 @@ public class RemoteRssFragment extends Fragment { @@ -113,8 +114,13 @@ public class RemoteRssFragment extends Fragment {
@ItemClick(resName = "torrents_list")
protected void detailsListClicked(int position) {
RemoteRssActivity activity = (RemoteRssActivity) getActivity();
RemoteRssItem item = (RemoteRssItem) adapter.getItem(position);
downloadRemoteRssItem(item);
}
@Background
protected void downloadRemoteRssItem(RemoteRssItem item) {
RemoteRssActivity activity = (RemoteRssActivity) getActivity();
IDaemonAdapter currentConnection = activity.getCurrentConnection();
DaemonTaskResult result;

22
app/src/main/res/layout/activity_remoterss.xml

@ -74,17 +74,17 @@ @@ -74,17 +74,17 @@
android:divider="@null"
tools:listitem="@layout/list_item_filter" />
<android.support.v7.widget.SearchView
android:id="@+id/filter_search"
android:layout_width="@dimen/ui_filters_list"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginEnd="5dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
app:iconifiedByDefault="false"
app:queryHint="@string/action_filter"
app:searchIcon="@drawable/ic_action_filter" />
<!--<android.support.v7.widget.SearchView-->
<!--android:id="@+id/filter_search"-->
<!--android:layout_width="@dimen/ui_filters_list"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginBottom="5dp"-->
<!--android:layout_marginEnd="5dp"-->
<!--android:layout_marginRight="10dp"-->
<!--android:layout_marginTop="5dp"-->
<!--app:iconifiedByDefault="false"-->
<!--app:queryHint="@string/action_filter"-->
<!--app:searchIcon="@drawable/ic_action_filter" />-->
</LinearLayout>

Loading…
Cancel
Save