Skip to content

Commit

Permalink
Solve some rebase conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
davigonz committed Aug 28, 2019
1 parent b44591c commit 5328e6f
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 14 deletions.
1 change: 1 addition & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion owncloud-android-library
9 changes: 9 additions & 0 deletions owncloudApp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@
android:supportsPictureInPicture="false"
android:theme="@style/Theme.ownCloud.Toolbar"
tools:targetApi="n">
<activity
android:name=".ui.activity.FileDisplayActivity"
android:theme="@style/Theme.ownCloud.Toolbar.Drawer">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ui.activity.ManageAccountsActivity" />
<activity
android:name=".ui.activity.ReceiveExternalFilesActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
import com.owncloud.android.lib.resources.files.FileUtils;
import com.owncloud.android.operations.DownloadFileOperation;
import com.owncloud.android.ui.activity.FileActivity;
import com.owncloud.android.ui.activity.FileDisplayActivity;
import com.owncloud.android.ui.errorhandling.ErrorMessageAdapter;
import com.owncloud.android.ui.notifications.NotificationUtils;
import com.owncloud.android.ui.preview.PreviewImageActivity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import com.owncloud.android.datamodel.OCFile;
import com.owncloud.android.lib.common.utils.Log_OC;
import com.owncloud.android.ui.activity.FileActivity;
import com.owncloud.android.ui.activity.FileDisplayActivity;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,10 @@ class OCShareViewModel(
/******************************************************************************************************
******************************************* PRIVATE SHARES *******************************************
******************************************************************************************************/

private val _privateShareCreationStatus = MutableLiveData<UIResult<Unit>>()
val privateShareCreationStatus: LiveData<UIResult<Unit>> = _privateShareCreationStatus

private val _privateShare = MutableLiveData<UIResult<OCShareEntity>>()
val privateShare: LiveData<UIResult<OCShareEntity>> = _privateShare

private var privateShareLiveData: LiveData<OCShareEntity>? = null
private lateinit var privateShareObserver: Observer<OCShareEntity>

private val _privateShareEditionStatus = MutableLiveData<UIResult<Unit>>()
val privateShareEditionStatus: LiveData<UIResult<Unit>> = _privateShareEditionStatus

fun insertPrivateShare(
filePath: String,
shareType: ShareType?,
Expand Down Expand Up @@ -205,7 +197,13 @@ class OCShareViewModel(
}
}

// Used to get a private share after updating
private val _privateShare = MutableLiveData<UIResult<OCShareEntity>>()
val privateShare: LiveData<UIResult<OCShareEntity>> = _privateShare

private var privateShareLiveData: LiveData<OCShareEntity>? = null
private lateinit var privateShareObserver: Observer<OCShareEntity>

// Used to get a specific private share after updating it
fun refreshPrivateShare(
remoteId: Long
) {
Expand All @@ -220,6 +218,9 @@ class OCShareViewModel(
privateShareLiveData?.observeForever(privateShareObserver)
}

private val _privateShareEditionStatus = MutableLiveData<UIResult<Unit>>()
val privateShareEditionStatus: LiveData<UIResult<Unit>> = _privateShareEditionStatus

fun updatePrivateShare(
remoteId: Long,
permissions: Int
Expand Down Expand Up @@ -264,9 +265,6 @@ class OCShareViewModel(
private val _publicShareCreationStatus = MutableLiveData<UIResult<Unit>>()
val publicShareCreationStatus: LiveData<UIResult<Unit>> = _publicShareCreationStatus

private val _publicShareEditionStatus = MutableLiveData<UIResult<Unit>>()
val publicShareEditionStatus: LiveData<UIResult<Unit>> = _publicShareEditionStatus

fun insertPublicShare(
filePath: String,
permissions: Int,
Expand Down Expand Up @@ -312,6 +310,9 @@ class OCShareViewModel(
}
}

private val _publicShareEditionStatus = MutableLiveData<UIResult<Unit>>()
val publicShareEditionStatus: LiveData<UIResult<Unit>> = _publicShareEditionStatus

fun updatePublicShare(
remoteId: Long,
name: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import com.owncloud.android.lib.common.utils.Log_OC;
import com.owncloud.android.ui.activity.ComponentsGetter;
import com.owncloud.android.ui.activity.FileActivity;
import com.owncloud.android.ui.activity.FileDisplayActivity;
import com.owncloud.android.ui.controller.TransferProgressController;
import com.owncloud.android.ui.dialog.RemoveFilesDialogFragment;
import com.owncloud.android.ui.dialog.RenameFileDialogFragment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
import com.owncloud.android.lib.common.utils.Log_OC;
import com.owncloud.android.lib.resources.status.OwnCloudVersion;
import com.owncloud.android.ui.activity.FileActivity;
import com.owncloud.android.ui.activity.FileDisplayActivity;
import com.owncloud.android.ui.activity.FolderPickerActivity;
import com.owncloud.android.ui.activity.OnEnforceableRefreshListener;
import com.owncloud.android.ui.adapter.FileListListAdapter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import com.owncloud.android.operations.RemoveFileOperation;
import com.owncloud.android.operations.SynchronizeFileOperation;
import com.owncloud.android.ui.activity.FileActivity;
import com.owncloud.android.ui.activity.FileDisplayActivity;
import com.owncloud.android.ui.fragment.FileFragment;
import com.owncloud.android.utils.Extras;
import com.owncloud.android.utils.PreferenceUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import com.owncloud.android.files.FileMenuFilter;
import com.owncloud.android.lib.common.utils.Log_OC;
import com.owncloud.android.ui.activity.FileActivity;
import com.owncloud.android.ui.activity.FileDisplayActivity;
import com.owncloud.android.ui.controller.TransferProgressController;
import com.owncloud.android.ui.dialog.ConfirmationDialogFragment;
import com.owncloud.android.ui.dialog.RemoveFilesDialogFragment;
Expand Down

0 comments on commit 5328e6f

Please sign in to comment.