Fixed bug. When downloading two files, it is not possible to come back to the file...
authorjabarros <jabarros@solidgear.es>
Thu, 18 Sep 2014 07:36:35 +0000 (09:36 +0200)
committerjabarros <jabarros@solidgear.es>
Thu, 18 Sep 2014 07:36:35 +0000 (09:36 +0200)
res/layout/file_download_fragment.xml
src/com/owncloud/android/ui/preview/FileDownloadFragment.java

index f881847..8f571dc 100644 (file)
@@ -16,6 +16,7 @@
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 -->
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/fileDownloadLL"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" 
index fe7bf6c..ebcf042 100644 (file)
@@ -33,6 +33,7 @@ import android.view.View;
 import android.view.View.OnClickListener;
 import android.view.ViewGroup;
 import android.widget.ImageButton;
+import android.widget.LinearLayout;
 import android.widget.ProgressBar;
 import android.widget.TextView;
 
@@ -126,6 +127,13 @@ public class FileDownloadFragment extends FileFragment implements OnClickListene
         
         ((ImageButton)mView.findViewById(R.id.cancelBtn)).setOnClickListener(this);
         
+        ((LinearLayout)mView.findViewById(R.id.fileDownloadLL)).setOnClickListener(new OnClickListener() {
+            @Override
+            public void onClick(View v) {
+                ((PreviewImageActivity) getActivity()).toggleFullScreen();
+            }
+        });
+
         if (mError) {
             setButtonsForRemote();
         } else {