Skip to content

Commit 92b0875

Browse files
committed
Remove permission for external storage
The book doesn't resides in the external storage anymore.
1 parent dde34e4 commit 92b0875

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

OCEBook/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
android:targetSdkVersion="25" />
88

99
<uses-permission android:name="android.permission.INTERNET" />
10-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
1110
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
1211
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
1312

OCEBook/app/src/main/java/com/devgrapher/ocebook/MainActivity.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ protected void onCreate(Bundle savedInstanceState) {
7373

7474
mPageInfoTextView = (TextView) findViewById(R.id.tv_page_info);
7575

76-
if (!checkPermissions()) return;
77-
7876
if (!PrepareBook()) return;
7977

8078
FragmentManager fragmentManager = getFragmentManager();
@@ -124,19 +122,6 @@ private boolean PrepareBook() {
124122
return true;
125123
}
126124

127-
private boolean checkPermissions() {
128-
int permissionCheck = ContextCompat.checkSelfPermission(this,
129-
Manifest.permission.READ_EXTERNAL_STORAGE);
130-
131-
if (permissionCheck == PackageManager.PERMISSION_DENIED) {
132-
Toast.makeText(getApplicationContext(),
133-
getString(R.string.error_permission),
134-
Toast.LENGTH_LONG).show();
135-
return false;
136-
}
137-
return true;
138-
}
139-
140125
@Override
141126
protected void onDestroy() {
142127
super.onDestroy();

0 commit comments

Comments
 (0)