Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS-for-Honeycomb
This commit is contained in:
commit
7d1cca8bd5
@ -59,7 +59,7 @@
|
||||
<string name="no_headlines_to_display">Aucun titre à afficher</string>
|
||||
<string name="browse_cats_like_feeds">Parcourir les catégories comme les flux</string>
|
||||
<string name="browse_cats_like_feeds_summary">Utilisez le menu contexte des catégories pour redéfinir ce paramètre.</string>
|
||||
<string name="headlines_mark_as_read">Marqué comme lu</string>
|
||||
<string name="headlines_mark_as_read">Marquer comme lu</string>
|
||||
<string name="error_unknown">Erreur: Erreur inconnue (voir journal)</string>
|
||||
<string name="error_http_unauthorized">Erreur: 401 non-authorisé</string>
|
||||
<string name="error_http_forbidden">Erreur: 403 interdit</string>
|
||||
|
@ -1,6 +1,7 @@
|
||||
package org.fox.ttrss;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
@ -115,8 +116,10 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
try {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW,
|
||||
Uri.parse(m_article.link.trim()));
|
||||
URL url = new URL(m_article.link.trim());
|
||||
String uri = new URI(url.getProtocol(), url.getUserInfo(), url.getHost(),
|
||||
url.getPort(), url.getPath(), url.getQuery(), url.getRef()).toString();
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
|
||||
startActivity(intent);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@ -139,11 +142,12 @@ public class ArticleFragment extends Fragment implements GestureDetector.OnDoubl
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
try {
|
||||
String link = (m_article.comments_link != null && m_article.comments_link.length() > 0) ?
|
||||
m_article.comments_link : m_article.link;
|
||||
|
||||
URL url = new URL((m_article.comments_link != null && m_article.comments_link.length() > 0) ?
|
||||
m_article.comments_link : m_article.link);
|
||||
String uri = new URI(url.getProtocol(), url.getUserInfo(), url.getHost(),
|
||||
url.getPort(), url.getPath(), url.getQuery(), url.getRef()).toString();
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW,
|
||||
Uri.parse(link.trim()));
|
||||
Uri.parse(uri));
|
||||
startActivity(intent);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
@ -240,7 +240,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
} else {
|
||||
AdapterContextMenuInfo info = (AdapterContextMenuInfo)menuInfo;
|
||||
Article article = getArticleAtPosition(info.position);
|
||||
menu.setHeaderTitle(article.title);
|
||||
menu.setHeaderTitle(Html.fromHtml(article.title));
|
||||
menu.setGroupVisible(R.id.menu_group_single_article, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user