浏览代码

Grant that uploads view shows the correct title always, no matter if entering from notifications

David A. Velasco 9 年之前
父节点
当前提交
1527cb86fc
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/com/owncloud/android/ui/activity/UploadListActivity.java

+ 5 - 0
src/com/owncloud/android/ui/activity/UploadListActivity.java

@@ -77,6 +77,11 @@ public class UploadListActivity extends FileActivity implements UploadListFragme
 
 
         setContentView(R.layout.upload_list_layout);
         setContentView(R.layout.upload_list_layout);
 
 
+        // this activity has no file really bound, it's for mulitple accounts at the same time; should no inherit
+        // from FileActivity; moreover, some behaviours inherited from FileActivity should be delegated to Fragments;
+        // but that's other story
+        setFile(null);
+
         // Navigation Drawer
         // Navigation Drawer
         initDrawer();
         initDrawer();