Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
u0509421 committed Jun 14, 2016
1 parent 241d6f8 commit aef4ed5
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ dependencies {
compile 'com.android.support:design:23.2.1'

compile 'com.prolificinteractive:material-calendarview:1.2.0'

compile project(':volley')
compile 'com.android.volley:volley:1.0.0'
compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2'

compile 'io.reactivex:rxandroid:1.2.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
.show();
break;
case R.id.action_share:
//TODO
share();
break;
default:
break;
Expand Down Expand Up @@ -164,4 +164,12 @@ private void parseJson(JSONObject jsonObject){
e.printStackTrace();
}
}

private void share(){
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_SUBJECT, "分享");
intent.putExtra(Intent.EXTRA_TEXT, "来自「历史上的今天」的分享" + title);
startActivity(Intent.createChooser(intent, title));
}
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.android.tools.build:gradle:2.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':app', ':volley'
include ':app'

0 comments on commit aef4ed5

Please sign in to comment.