From bdc294743441bbec776bd2e2c21c38619447cee3 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 2 Apr 2015 17:19:48 -0700 Subject: Don't show changelog for first run ever --- src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 2 +- src/github/daneren2005/dsub/view/ChangeLog.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/github/daneren2005') diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java index 8bd01cd6..b6b67a7b 100644 --- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -609,7 +609,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR } protected void setupScrollList(final AbsListView listView) { - if(context.isTv()) { + if(!context.isTouchscreen()) { refreshLayout.setEnabled(false); } else { listView.setOnScrollListener(new AbsListView.OnScrollListener() { diff --git a/src/github/daneren2005/dsub/view/ChangeLog.java b/src/github/daneren2005/dsub/view/ChangeLog.java index 5a7850ff..096583c7 100644 --- a/src/github/daneren2005/dsub/view/ChangeLog.java +++ b/src/github/daneren2005/dsub/view/ChangeLog.java @@ -324,7 +324,7 @@ public class ChangeLog { /** * Write current version code to the preferences. */ - protected void updateVersionInPreferences() { + public void updateVersionInPreferences() { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext); SharedPreferences.Editor editor = sp.edit(); editor.putInt(VERSION_KEY, mCurrentVersionCode); -- cgit v1.2.3