Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
robbyzhaox committed Aug 9, 2015
1 parent 95735a2 commit 5ac9d3a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@

<activity
android:name=".news.NewsContentActivity"
android:label="@string/news_content">
</activity>
android:label="@string/news_content"></activity>

<activity android:name=".news.NewsListActivity"
<activity
android:name=".news.NewsListActivity"
android:label="@string/menu_group_news">
<intent-filter>
<action android:name="com.telchina.wx.NEWS" />
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/telchina/wx/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public boolean onOptionsItemSelected(MenuItem item) {

if (item.getItemId() == R.id.action_group_news) {

Intent intent=new Intent(NEWS);
Intent intent = new Intent(NEWS);
startActivity(intent);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ protected void onCreate(Bundle savedInstanceState) {
String newsTitle = getIntent().getStringExtra("news_list");
String newsContent = getIntent().getStringExtra("news_content");

FragmentManager fm=getSupportFragmentManager();
NewsContentFragment fragment=(NewsContentFragment)fm.findFragmentById(R.id.news_content_fragment);
FragmentManager fm = getSupportFragmentManager();
NewsContentFragment fragment = (NewsContentFragment) fm.findFragmentById(R.id.news_content_fragment);
fragment.refresh(newsTitle, newsContent);
}
}
6 changes: 3 additions & 3 deletions app/src/main/java/com/telchina/wx/news/NewsTitleFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

public class NewsTitleFragment extends Fragment implements AdapterView.OnItemClickListener {

private ListView newsTitleListView;
private List<News> newsList;
private ListView newsTitleListView;
private List<News> newsList;
private NewsAdapter newsAdapter;

private Boolean isTwoPane;
private Boolean isTwoPane;

@Override
public void onAttach(Activity activity) {
Expand Down

0 comments on commit 5ac9d3a

Please sign in to comment.