forked from mirror/monocles_chat_clean
add TODOs for camera permission
(cherry picked from commit fb7f0ceef26022656f600dc96f1a343a04173760)
This commit is contained in:
parent
4b05935b67
commit
0b8dcea0b6
3 changed files with 3 additions and 1 deletions
|
@ -290,6 +290,7 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
|
|||
|
||||
@Override
|
||||
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
|
||||
// TODO check for Camera / Scan permission
|
||||
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
||||
if (grantResults.length > 0)
|
||||
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
|
||||
|
|
|
@ -586,6 +586,7 @@ public class EditAccountActivity extends OmemoActivity
|
|||
|
||||
@Override
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
// TODO check for Camera / Scan permission
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
if (requestCode == REQUEST_BATTERY_OP || requestCode == REQUEST_DATA_SAVER) {
|
||||
updateAccountInformation(mAccount == null);
|
||||
|
|
|
@ -1171,7 +1171,7 @@ public class StartConversationActivity extends XmppActivity
|
|||
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
|
||||
if (grantResults.length > 0)
|
||||
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
|
||||
ScanActivity.onRequestPermissionResult(this, requestCode, grantResults);
|
||||
UriHandlerActivity.onRequestPermissionResult(this, requestCode, grantResults);
|
||||
if (requestCode == REQUEST_SYNC_CONTACTS && xmppConnectionServiceBound) {
|
||||
if (QuickConversationsService.isQuicksy()) {
|
||||
setRefreshing(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue