Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
93b7516d
Commit
93b7516d
authored
5 years ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
photobooth: catch ActivityNotFound exception
Change-Id: I06d4a5df383737d65de1f0dbbe3a0ec332f018df
parent
bc5d2354
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ring-android/app/src/main/java/cx/ring/account/ProfileCreationFragment.java
+4
-1
4 additions, 1 deletion
...rc/main/java/cx/ring/account/ProfileCreationFragment.java
with
4 additions
and
1 deletion
ring-android/app/src/main/java/cx/ring/account/ProfileCreationFragment.java
+
4
−
1
View file @
93b7516d
...
@@ -22,6 +22,7 @@ package cx.ring.account;
...
@@ -22,6 +22,7 @@ package cx.ring.account;
import
android.Manifest
;
import
android.Manifest
;
import
android.app.Activity
;
import
android.app.Activity
;
import
android.content.ActivityNotFoundException
;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.content.pm.PackageManager
;
import
android.content.pm.PackageManager
;
...
@@ -203,10 +204,12 @@ public class ProfileCreationFragment extends BaseSupportFragment<ProfileCreation
...
@@ -203,10 +204,12 @@ public class ProfileCreationFragment extends BaseSupportFragment<ProfileCreation
intent
.
putExtra
(
MediaStore
.
EXTRA_OUTPUT
,
uri
);
intent
.
putExtra
(
MediaStore
.
EXTRA_OUTPUT
,
uri
);
intent
.
addFlags
(
Intent
.
FLAG_GRANT_WRITE_URI_PERMISSION
);
intent
.
addFlags
(
Intent
.
FLAG_GRANT_WRITE_URI_PERMISSION
);
tmpProfilePhotoUri
=
uri
;
tmpProfilePhotoUri
=
uri
;
startActivityForResult
(
intent
,
REQUEST_CODE_PHOTO
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
Log
.
e
(
TAG
,
"Can't create temp file"
,
e
);
Log
.
e
(
TAG
,
"Can't create temp file"
,
e
);
}
catch
(
ActivityNotFoundException
e
)
{
Log
.
e
(
TAG
,
"Could not start activity"
);
}
}
startActivityForResult
(
intent
,
REQUEST_CODE_PHOTO
);
}
}
@Override
@Override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment