move to new gradle/wrapper
possibly fix headlinefragment jumping bug on tablets bump version
This commit is contained in:
parent
4e5a6fb534
commit
c234648de4
@ -4,7 +4,7 @@ buildscript {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:1.3.0'
|
||||
classpath 'com.android.tools.build:gradle:2.0.0'
|
||||
}
|
||||
}
|
||||
|
||||
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
||||
#Tue Jan 27 11:47:07 AST 2015
|
||||
#Mon Apr 11 22:43:55 MSK 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.fox.ttrss"
|
||||
android:versionCode="403"
|
||||
android:versionName="1.171" >
|
||||
android:versionCode="404"
|
||||
android:versionName="1.172" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="16"
|
||||
|
@ -175,7 +175,7 @@ public class ArticlePager extends Fragment {
|
||||
}
|
||||
|
||||
if (m_article != null) {
|
||||
if (m_article.id == 0 || m_articles.indexOf(m_article) == -1) {
|
||||
if (m_article.id == 0 || !m_articles.containsId(m_article.id)) {
|
||||
if (m_articles.size() > 0) {
|
||||
m_article = m_articles.get(0);
|
||||
m_listener.onArticleSelected(m_article, false);
|
||||
|
@ -279,6 +279,7 @@ public class DetailActivity extends OnlineActivity implements HeadlinesEventList
|
||||
Article article = hf.getActiveArticle();
|
||||
|
||||
if (article == null && hf.getAllArticles().size() > 0) {
|
||||
|
||||
article = hf.getAllArticles().get(0);
|
||||
|
||||
hf.setActiveArticle(article);
|
||||
|
@ -598,8 +598,9 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
if (result != null) {
|
||||
m_refreshInProgress = false;
|
||||
|
||||
if (m_articles.indexOf(m_activeArticle) == -1)
|
||||
if (m_activeArticle != null && !m_articles.containsId(m_activeArticle.id)) {
|
||||
m_activeArticle = null;
|
||||
}
|
||||
|
||||
if (m_firstIdChanged) {
|
||||
m_articles.add(new Article(ARTICLE_SPECIAL_TOP_CHANGED));
|
||||
@ -613,7 +614,9 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
||||
// not sure why but listview sometimes gets positioned while ignoring the header so
|
||||
// top headline content becomes partially obscured by the toolbar on phones
|
||||
// (not reproducible on avd)
|
||||
if (!fappend) m_list.smoothScrollToPosition(0);
|
||||
if (!fappend) {
|
||||
m_list.smoothScrollToPosition(0);
|
||||
}
|
||||
|
||||
} else {
|
||||
if (m_lastError == ApiError.LOGIN_FAILED) {
|
||||
|
@ -9,8 +9,6 @@
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true">
|
||||
<output url="file://$MODULE_DIR$/build/classes/main" />
|
||||
<output-test url="file://$MODULE_DIR$/build/classes/test" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
||||
|
Loading…
Reference in New Issue
Block a user