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:
parent
56933cdbd6
commit
13f52e1b50
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user