File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
kotlin/com/simplemobiletools/filemanager/pro/activities Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 8383 </intent-filter >
8484 </activity >
8585
86+ <activity
87+ android : name =" .activities.SaveAsActivity"
88+ android : label =" @string/save_as" >
89+ <intent-filter >
90+ <action android : name =" android.intent.action.SEND" />
91+ <category android : name =" android.intent.category.DEFAULT" />
92+
93+ <data android : mimeType =" text/plain" />
94+ <data android : mimeType =" image/*" />
95+ <data android : mimeType =" video/*" />
96+ </intent-filter >
97+ </activity >
98+
8699 <activity
87100 android : name =" .activities.SettingsActivity"
88101 android : label =" @string/settings"
Original file line number Diff line number Diff line change 1+ package com.simplemobiletools.filemanager.pro.activities
2+
3+ import android.content.Intent
4+ import android.os.Bundle
5+ import com.simplemobiletools.commons.extensions.toast
6+ import com.simplemobiletools.filemanager.pro.R
7+
8+ class SaveAsActivity : SimpleActivity () {
9+ override fun onCreate (savedInstanceState : Bundle ? ) {
10+ super .onCreate(savedInstanceState)
11+ setContentView(R .layout.activity_save_as)
12+
13+ if (intent.action == Intent .ACTION_SEND && intent.extras?.containsKey(Intent .EXTRA_STREAM ) == true ) {
14+
15+ } else {
16+ toast(R .string.unknown_error_occurred)
17+ finish()
18+ }
19+ }
20+ }
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3+ android : id =" @+id/activity_save_as_holder"
4+ android : layout_width =" match_parent"
5+ android : layout_height =" match_parent" >
6+
7+ </RelativeLayout >
You can’t perform that action at this time.
0 commit comments