Skip to content

Commit b81d3c1

Browse files
committed
Merge branch 'master' of github.com:DevConMyanmar/devcon-android-2014
2 parents 8b19ae8 + bf4620e commit b81d3c1

7 files changed

Lines changed: 42 additions & 52 deletions

File tree

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repositories {
1717

1818
def versionMajor = 1
1919
def versionMinor = 3
20-
def versionPatch = 0
20+
def versionPatch = 1
2121
def versionBuild = 0
2222

2323
def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()

app/src/main/assets/bootstrapdata.json

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -219,36 +219,6 @@
219219
"7"
220220
]
221221
},
222-
{
223-
"id": "17",
224-
"title": "The Art of killing bugs",
225-
"description": "The Art of killing bugs",
226-
"photo": "",
227-
"date": "2014-11-15",
228-
"favourite": "false",
229-
"talk_type": "2",
230-
"room": "205",
231-
"from_time": "15:00",
232-
"to_time": "16:00",
233-
"speakers": [
234-
"29"
235-
]
236-
},
237-
{
238-
"id": "14",
239-
"title": "Cocos2DX Game Development Engine",
240-
"description": "Cocos2DX Game Development Engine",
241-
"photo": "",
242-
"date": "2014-11-15",
243-
"favourite": "false",
244-
"talk_type": "2",
245-
"room": "205",
246-
"from_time": "11:00",
247-
"to_time": "12:00",
248-
"speakers": [
249-
"25"
250-
]
251-
},
252222
{
253223
"id": "16",
254224
"title": "Lightening Talks",
@@ -271,6 +241,21 @@
271241
"8"
272242
]
273243
},
244+
{
245+
"id": "17",
246+
"title": "The Art of killing bugs",
247+
"description": "The Art of killing bugs",
248+
"photo": "",
249+
"date": "2014-11-15",
250+
"favourite": "false",
251+
"talk_type": "2",
252+
"room": "205",
253+
"from_time": "15:00",
254+
"to_time": "16:00",
255+
"speakers": [
256+
"29"
257+
]
258+
},
274259
{
275260
"id": "18",
276261
"title": "What's new in Android 5.0 ?",
@@ -771,6 +756,13 @@
771756
"description": "",
772757
"photo": ""
773758
},
759+
{
760+
"id": "16",
761+
"name": "David Madden",
762+
"title": "Founder of Code for Change Myanmar",
763+
"description": "David Madden is an entrepreneur specializing in technology, new media & innovation. He is the Founder of Code for Change Myanmar, an initiative to harness the transformative potential of Myanmar's connectivity revolution. He is also the Co-Founder of Parami Road, a marketing strategy agency in Yangon.\nPrior to moving to Myanmar, David was the Co-Founder of Purpose, a digital strategy agency with offices in New York, London and Rio. David is also the Co-Founder of two major advocacy groups, Avaaz.org and GetUp.org.\nDavid holds a Masters in Public Policy from Harvard University and has degrees in Law and Arts from the University of New South Wales. \ne. david@codeforchangemyanmar.org \n t. @davidmadden",
764+
"photo": "https://lh4.googleusercontent.com/aFT-gRzImP1y94EosvD9MIac3movlcCVR0CCprs9DzMNE7NcUBsAC_EtIg5Pct6N7imzF8RB1lc=w1416-h646"
765+
},
774766
{
775767
"id": "17",
776768
"name": "Poe Poe Myint Swe",

app/src/main/java/org/devconmyanmar/apps/devcon/db/TalkDao.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* The MIT License (MIT)
43
*

app/src/main/java/org/devconmyanmar/apps/devcon/ui/BaseFragment.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* The MIT License (MIT)
43
*
@@ -153,6 +152,7 @@ protected void syncSchedules(final CustomSwipeRefreshLayout exploreSwipeRefreshV
153152
e.printStackTrace();
154153
}
155154

155+
List<Talk> talks = new ArrayList<Talk>();
156156
for (JsonElement j : scheduleArray) {
157157
Talk talk = new Talk();
158158
talk.setId(j.getAsJsonObject().get("id").getAsInt());
@@ -167,14 +167,10 @@ protected void syncSchedules(final CustomSwipeRefreshLayout exploreSwipeRefreshV
167167
talk.setTo_time(j.getAsJsonObject().get("to_time").getAsString());
168168
JsonArray speakers = j.getAsJsonObject().getAsJsonArray("speakers");
169169
talk.setSpeakers(speakers.toString());
170+
talks.add(talk);
170171
talkDao.create(talk);
171172
}
172-
List<Talk> talks = new ArrayList<Talk>();
173-
try {
174-
talks = talkDao.getAll();
175-
} catch (SQLException e) {
176-
e.printStackTrace();
177-
}
173+
178174
ArrayList<Talk> favTalk = flattenFav(SharePref.getInstance(mContext).geFavIds());
179175
ArrayList<Integer> talkIds = new ArrayList<Integer>();
180176
for (Talk talk : favTalk) {

app/src/main/java/org/devconmyanmar/apps/devcon/ui/SpeakerDetailFragment.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* The MIT License (MIT)
43
*
@@ -41,6 +40,7 @@
4140
import org.devconmyanmar.apps.devcon.transformer.CircleTransformer;
4241
import org.devconmyanmar.apps.devcon.utils.AnalyticsManager;
4342

43+
import static org.devconmyanmar.apps.devcon.utils.LogUtils.LOGD;
4444
import static org.devconmyanmar.apps.devcon.utils.LogUtils.makeLogTag;
4545

4646
public class SpeakerDetailFragment extends BaseFragment {
@@ -73,6 +73,7 @@ public void onCreate(Bundle savedInstanceState) {
7373
super.onCreate(savedInstanceState);
7474
if (getArguments() != null) {
7575
mSpeakerId = getArguments().getString(ARG_TALK_ID);
76+
LOGD(TAG, "speaker id in detail : " + mSpeakerId);
7677
}
7778
}
7879

@@ -90,6 +91,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
9091
tintManager.setNavigationBarTintEnabled(false);
9192
tintManager.setTintColor(getResources().getColor(R.color.translucent_actionbar_background));
9293
}
94+
9395
Speaker speaker = speakerDao.getSpeakerById(mSpeakerId);
9496

9597
if (speaker != null) {

app/src/main/java/org/devconmyanmar/apps/devcon/ui/SpeakerFragment.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* The MIT License (MIT)
43
*
@@ -57,6 +56,7 @@
5756
import org.devconmyanmar.apps.devcon.utils.HelpUtils;
5857

5958
import static org.devconmyanmar.apps.devcon.Config.POSITION;
59+
import static org.devconmyanmar.apps.devcon.utils.LogUtils.LOGD;
6060

6161
/**
6262
* Created by Ye Lin Aung on 14/10/05.
@@ -144,6 +144,7 @@ public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCoun
144144

145145
@SuppressWarnings("unused") @OnItemClick(R.id.my_list) void speakerListItemClick(int position) {
146146
int id = mSpeakers.get(position).getId();
147+
LOGD("speakers ", "id " + id);
147148
Intent i = new Intent(getActivity(), SpeakerDetailActivity.class);
148149

149150
AnalyticsManager.sendEvent("Speaker List", "selectspeaker", mSpeakers.get(position).getTitle());

app/src/main/res/layout/fragment_speaker_detail.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
androidsucks:stuckShadowDrawable="@drawable/sticky_shawdow"
66
androidsucks:stuckShadowHeight="10dip"
77
android:id="@+id/talk_detail_scroll_view"
8+
android:background="@android:color/white"
89
android:layout_width="match_parent"
910
android:layout_height="match_parent">
1011

@@ -81,7 +82,6 @@
8182

8283
<TextView
8384
android:id="@+id/speaker_detail_description"
84-
tools:text="@string/placeholder_talk_description"
8585
android:padding="@dimen/spacing_major"
8686
android:layout_width="wrap_content"
8787
android:layout_height="wrap_content"/>
@@ -97,21 +97,21 @@
9797
android:layout_height="1dp"
9898
layout="@layout/divider"/>
9999

100-
<TextView
101-
android:text="@string/related_talks"
102-
style="@style/SessionDetailSectionHeader"
103-
android:layout_width="match_parent"
104-
android:layout_height="wrap_content"/>
100+
<!--<TextView-->
101+
<!--android:text="@string/related_talks"-->
102+
<!--style="@style/SessionDetailSectionHeader"-->
103+
<!--android:layout_width="match_parent"-->
104+
<!--android:layout_height="wrap_content"/>-->
105105

106106
<!--<include-->
107107
<!--android:id="@+id/include_speaker_list"-->
108108
<!--layout="@layout/speaker_list"/>-->
109109

110-
<include
111-
android:layout_margin="@dimen/spacing_major"
112-
android:layout_width="wrap_content"
113-
android:layout_height="1dp"
114-
layout="@layout/divider"/>
110+
<!--<include-->
111+
<!--android:layout_margin="@dimen/spacing_major"-->
112+
<!--android:layout_width="wrap_content"-->
113+
<!--android:layout_height="1dp"-->
114+
<!--layout="@layout/divider"/>-->
115115
</LinearLayout>
116116

117117
</LinearLayout>

0 commit comments

Comments
 (0)