Commit ccd7a63d authored by Roumen Petrov's avatar Roumen Petrov
Browse files

manage title of FileSelection activity

parent 788daa59
......@@ -140,7 +140,7 @@
android:name="com.termoneplus.shortcuts.FileSelection"
android:configChanges="orientation|keyboardHidden"
android:exported="true"
android:label="@string/addshortcut_button_find_command"
android:label="@string/fsnavigator_title"
android:launchMode="singleTop"
android:theme="@style/AppTheme">
<intent-filter>
......
......@@ -99,6 +99,7 @@ public void onClick(View view) {
Intent pickerIntent = new Intent(Intent.ACTION_PICK)
.putExtra("CONTENT_TYPE", "*/*");
pickerIntent.putExtra("TITLE", getString(R.string.addshortcut_button_find_command));
if (lastPath != null)
pickerIntent.putExtra("COMMAND_PATH", lastPath);
......
......@@ -49,8 +49,12 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_file_selection);
Intent intent = getIntent();
if (intent.hasExtra("TITLE"))
setTitle(intent.getStringExtra("TITLE"));
if (savedInstanceState == null) {
Intent intent = getIntent();
Uri uri = intent.getData();
if (uri != null) {
cwd = uri.getPath();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment