Преглед на файлове

Fixed bug. When downloading two files, it is not possible to come back to the file list. Bars does not appear.

jabarros преди 10 години
родител
ревизия
c3e3160727
променени са 2 файла, в които са добавени 9 реда и са изтрити 0 реда
  1. 1 0
      res/layout/file_download_fragment.xml
  2. 8 0
      src/com/owncloud/android/ui/preview/FileDownloadFragment.java

+ 1 - 0
res/layout/file_download_fragment.xml

@@ -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" 

+ 8 - 0
src/com/owncloud/android/ui/preview/FileDownloadFragment.java

@@ -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 {