change title to "F-Droid" for VIEW Intent receiver chooser

When someone clicks on a URL that F-Droid can accept, i.e. a repo URL, then
Android puts up a chooser where the user can select which app to VIEW the
URL with.  That was showing up with the title "Repositories", which is the
title used for that Activity when viewing it.  This keeps the Activity
title the same while changing the title in the chooser.
This commit is contained in:
Hans-Christoph Steiner 2014-07-11 17:27:04 -04:00
parent 56933cdbd6
commit 13f52e1b50
2 changed files with 7 additions and 1 deletions

View File

@ -107,9 +107,13 @@
android:name="android.app.default_searchable"
android:value=".SearchResults" />
</activity>
<!--
The title for ManageReposActivity is "F-Droid" here, but "Repositories"
when viewing the Activity itself in the app.
-->
<activity
android:name=".views.ManageReposActivity"
android:label="@string/menu_manage"
android:label="@string/app_name"
android:launchMode="singleTask"
android:parentActivityName=".FDroid" >
<meta-data

View File

@ -130,6 +130,8 @@ public class ManageReposActivity extends ActionBarActivity {
}
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// title is "Repositories" here, but "F-Droid" in VIEW Intent chooser
getSupportActionBar().setTitle(R.string.menu_manage);
}
@Override