Fixed Downloading of items, and two-plane layout for large devices
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<manifest package="com.RickBarrette.osj.forum"
|
||||
android:versionCode="23"
|
||||
android:versionCode="30"
|
||||
android:versionName="1.0" xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto">
|
||||
|
||||
<uses-sdk
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<resources>
|
||||
<item type="layout" name="activity_topic_list">@layout/activity_topic_twopane</item>
|
||||
<item type="layout" name="activity_forum_list">@layout/activity_forum_twopane</item>
|
||||
</resources>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<resources>
|
||||
<item type="layout" name="activity_topic_list">@layout/activity_topic_twopane</item>
|
||||
<item type="layout" name="activity_forum_list">@layout/activity_forum_twopane</item>
|
||||
</resources>
|
||||
|
||||
@@ -65,6 +65,7 @@ public class ForumListFragment extends ListFragment {
|
||||
public void onCreate(final Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
if(ForumContent.ITEMS.size() == 0)
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
@@ -77,6 +78,8 @@ public class ForumListFragment extends ListFragment {
|
||||
});
|
||||
}
|
||||
}).start();
|
||||
else
|
||||
setListAdapter(new ForumAdapter(getActivity()));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user