Skip to content

Commit

Permalink
Merge branch 'release/v4.1.4' into 'master'
Browse files Browse the repository at this point in the history
Release v4.1.4

See merge request mobile/android/android!1840
  • Loading branch information
javiergm1983 committed Jun 1, 2021
2 parents df7ebef + 38cf0d3 commit 8639bde
Show file tree
Hide file tree
Showing 146 changed files with 4,905 additions and 6,074 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ dependencies {
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.google.android:flexbox:2.0.1'
implementation 'jp.wasabeef:blurry:2.1.0'
implementation 'com.github.meganz.AndroidDocumentScanner:documentscanner:2.0.7'
implementation 'com.github.meganz.AndroidDocumentScanner:documentscanner:2.0.8'

implementation "io.reactivex.rxjava3:rxjava:$rxJavaVersion"
implementation "io.reactivex.rxjava3:rxandroid:$rxAndroidVersion"
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,11 @@
android:label="@string/app_name">
</activity>

<activity
android:name="mega.privacy.android.app.lollipop.VerifyTwoFactorActivity"
android:label="@string/app_name">
</activity>

<activity
android:name="mega.privacy.android.app.BusinessExpiredAlertActivity"
android:label="@string/app_name">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import android.view.Menu
import android.view.MenuItem
import android.view.View.GONE
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import mega.privacy.android.app.BaseActivity
import mega.privacy.android.app.R
import mega.privacy.android.app.components.attacher.MegaAttacher
import mega.privacy.android.app.databinding.GetLinkActivityLayoutBinding
Expand All @@ -28,7 +27,7 @@ import nz.mega.sdk.MegaChatApiJava.MEGACHAT_INVALID_HANDLE
import nz.mega.sdk.MegaNode
import java.util.*

class GetLinkActivity : BaseActivity(), GetLinkInterface, SnackbarShower {
class GetLinkActivity : PasscodeActivity(), GetLinkInterface, SnackbarShower {
companion object {
const val GET_LINK_FRAGMENT = 0
const val COPYRIGHT_FRAGMENT = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ package mega.privacy.android.app.activities

import android.os.Bundle
import dagger.hilt.android.AndroidEntryPoint
import mega.privacy.android.app.BaseActivity
import mega.privacy.android.app.R
import mega.privacy.android.app.fragments.offline.OfflineFileInfoFragment
import mega.privacy.android.app.fragments.offline.OfflineFileInfoFragmentArgs
import mega.privacy.android.app.utils.Constants.HANDLE
import mega.privacy.android.app.utils.LogUtil.logError

@AndroidEntryPoint
class OfflineFileInfoActivity : BaseActivity() {
class OfflineFileInfoActivity : PasscodeActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_offline_file_info)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ class NodeSaver(

/**
* Save a list of MegaNode into device.
* No matter if the list contains only files, or files and folders.
*
* @param handles the handle list of nodes to save
* @param highPriority whether this download is high priority or not
Expand All @@ -155,20 +156,17 @@ class NodeSaver(
) {
save {
val nodes = ArrayList<MegaNode>()
var totalSize = 0L

val api = if (isFolderLink) megaApiFolder else megaApi

for (handle in handles) {
val node = api.getNodeByHandle(handle)
if (node != null) {
nodes.add(node)
totalSize += node.size
}
}

MegaNodeSaving(
totalSize, highPriority, isFolderLink, nodes, fromMediaViewer, needSerialize
nodesTotalSize(nodes), highPriority, isFolderLink, nodes, fromMediaViewer, needSerialize
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class LinkFragment(private val getLinkInterface: GetLinkInterface) : BaseFragmen
val day = calendar.get(Calendar.DAY_OF_MONTH)

val datePickerDialog = MaterialStyledDatePickerDialog(context,
R.style.ThemeOverlay_MaterialComponents_MaterialAlertDialog_Picker_Date_Calendar,
R.style.Widget_Mega_DatePickerDialog,
this, year, month, day)
datePickerDialog.datePicker.minDate = System.currentTimeMillis() - 1000
datePickerDialog.show()
Expand Down
Loading

0 comments on commit 8639bde

Please sign in to comment.