Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Add OAuth2 exception handling, and update gittignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ulukaya committed Nov 3, 2014
1 parent a690769 commit 20f9f82
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
YouTubeDirectLiteforAndroid.iml
.idea
build
local.properties
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/build
app.iml
13 changes: 0 additions & 13 deletions app/src/androidTest/java/com/google/ytdl/ApplicationTest.java

This file was deleted.

2 changes: 2 additions & 0 deletions app/src/main/java/com/google/ytdl/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ protected Void doInBackground(Void... voids) {
.build();
try {
youtube.videos().update("snippet", updateVideo).execute();
} catch (UserRecoverableAuthIOException e) {
startActivityForResult(e.getIntent(), REQUEST_AUTHORIZATION);
} catch (IOException e) {
Log.e(TAG, e.getMessage());
}
Expand Down

0 comments on commit 20f9f82

Please sign in to comment.