Skip to content

Commit 2d249a3

Browse files
committed
Revert "fix: Change permission from CAMERA to WRITE EXTERNAL STORAGE"
This reverts commit 3c24d9c
1 parent d4eb381 commit 2d249a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/main/kotlin/org/mifos/mobile/cn/ui/mifos/customerProfile/CustomerProfileActivity.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CustomerProfileActivity: MifosBaseActivity(),CustomerProfileContract.View
4343

4444
override fun onOptionsItemSelected(item: MenuItem): Boolean {
4545
if (item.itemId == R.id.menu_customer_profile_share) {
46-
checkWriteExternalStoragePermission()
46+
checkCameraPermission()
4747
return true
4848
}
4949
else return super.onOptionsItemSelected(item)
@@ -79,7 +79,7 @@ class CustomerProfileActivity: MifosBaseActivity(),CustomerProfileContract.View
7979
return returnedBitmap
8080
}
8181

82-
override fun checkWriteExternalStoragePermission() {
82+
override fun checkCameraPermission() {
8383
if (CheckSelfPermissionAndRequest.checkSelfPermission(this,
8484
android.Manifest.permission.WRITE_EXTERNAL_STORAGE)){
8585
shareImage()
@@ -110,7 +110,7 @@ class CustomerProfileActivity: MifosBaseActivity(),CustomerProfileContract.View
110110
override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>,
111111
grantResults: IntArray) {
112112
when (requestCode) {
113-
ConstantKeys.PERMISSION_REQUEST_WRITE_EXTERNAL_STORAGE -> {
113+
ConstantKeys.PERMISSIONS_REQUEST_CAMERA -> {
114114
if (grantResults.size > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
115115
shareImage()
116116
} else {

app/src/main/kotlin/org/mifos/mobile/cn/ui/mifos/customerProfile/CustomerProfileContract.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import org.mifos.mobile.cn.ui.base.MvpView
55
interface CustomerProfileContract {
66

77
interface View: MvpView{
8-
fun checkWriteExternalStoragePermission();
8+
fun checkCameraPermission();
99

1010
fun requestPermission();
1111

0 commit comments

Comments
 (0)