.
This commit is contained in:
parent
4e536a8af5
commit
6b52df1dc8
3 changed files with 7 additions and 3 deletions
|
|
@ -20,6 +20,7 @@ import android.util.Patterns
|
|||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.WindowManager
|
||||
import android.widget.Toast
|
||||
import androidx.core.app.ActivityCompat
|
||||
import androidx.core.os.bundleOf
|
||||
import androidx.core.view.ViewCompat
|
||||
|
|
@ -199,6 +200,8 @@ class ShareActivity : BaseActivity() {
|
|||
bundle.putSerializable("type", downloadType)
|
||||
navController.setGraph(R.navigation.share_nav_graph, bundle)
|
||||
}else{
|
||||
Toast.makeText(this@ShareActivity, "${getString(R.string.downloading)} $inputQuery", Toast.LENGTH_SHORT).show()
|
||||
|
||||
lifecycleScope.launch(Dispatchers.IO){
|
||||
val downloadItem = downloadViewModel.createDownloadItemFromResult(
|
||||
result = result,
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@
|
|||
<string name="errored_downloads">Errored downloads</string>
|
||||
<string name="errored_download_notification_channel_description">Notification for faulty downloads</string>
|
||||
<string name="quick_download">Quick download</string>
|
||||
<string name="quick_download_summary">Don\'t fetch data in the download card</string>
|
||||
<string name="quick_download_summary">Continue with the download process immediately, without fetching data beforehand</string>
|
||||
<string name="remove_audio">Remove audio</string>
|
||||
<string name="preferred_format_id">Preferred format ID</string>
|
||||
<string name="download_now">Download now</string>
|
||||
|
|
@ -507,5 +507,6 @@
|
|||
<string name="no_auth">No Auth</string>
|
||||
<string name="auth">Auth</string>
|
||||
<string name="app_icon">App Icon</string>
|
||||
<string name="show_quick_download_share_menu">Show Quick Download in share menu</string>
|
||||
<string name="show_quick_download_share_menu">Show option to download immediately in the share menu</string>
|
||||
<string name="quick_download_title">Don\'t fetch data</string>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
android:icon="@drawable/ic_speed"
|
||||
android:key="quick_download"
|
||||
app:summary="@string/quick_download_summary"
|
||||
app:title="@string/quick_download" />
|
||||
app:title="@string/quick_download_title" />
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="url_type"
|
||||
|
|
|
|||
Loading…
Reference in a new issue