changing activity titles.

This commit is contained in:
Kevin Meyer 2014-12-16 10:43:16 +01:00
parent b98d2a9aaf
commit e9fd003efc
3 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,9 @@
</activity> </activity>
<activity android:name="fr.gaulupeau.apps.Poche.ReadArticle" /> <activity android:name="fr.gaulupeau.apps.Poche.ReadArticle" />
<activity android:name="fr.gaulupeau.apps.Poche.ListArticles" /> <activity android:name="fr.gaulupeau.apps.Poche.ListArticles" />
<activity android:name="fr.gaulupeau.apps.Poche.Settings" /> <activity
android:name="fr.gaulupeau.apps.Poche.Settings"
android:label="@string/btnSettings" />
</application> </application>
</manifest> </manifest>

View File

@ -87,6 +87,8 @@ public class ListArticles extends BaseActionBarActivity {
} }
}); });
setTitle("wallabag | " + readArticlesInfo.size() + " Articles");
} }
public ReadingListAdapter getAdapterQuery(String filter, ArrayList<Article> articleInfo) { public ReadingListAdapter getAdapterQuery(String filter, ArrayList<Article> articleInfo) {

View File

@ -50,6 +50,8 @@ public class ReadArticle extends BaseActionBarActivity {
String originalUrlDesc = originalUrlText; String originalUrlDesc = originalUrlText;
String htmlContent = ac.getString(3); String htmlContent = ac.getString(3);
setTitle(titleText);
try { try {
URL originalUrl = new URL(originalUrlText); URL originalUrl = new URL(originalUrlText);
originalUrlDesc = originalUrl.getHost(); originalUrlDesc = originalUrl.getHost();