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
szülő 56933cdbd6
commit 13f52e1b50
2 fájl változott, egészen pontosan 7 új sor hozzáadva és 1 régi sor törölve

Fájl megtekintése

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

Fájl megtekintése

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