Skip to content

Commit c2e9eae

Browse files
committed
Some more little fixes
- AndroidManifest.xml, add android:exported attribute to <activity> as recommended by Android Studio - Add back missing rar extension to FileUtils.COMPRESSED_FILE_EXTENSIONS which prevented RAR files be opened by Amaze for viewing
1 parent bde31f2 commit c2e9eae

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@
150150
android:launchMode="singleInstance"
151151
android:name=".ui.activities.MainActivity"
152152
android:theme="@style/appCompatBlack"
153-
android:configChanges="uiMode" >
153+
android:configChanges="uiMode"
154+
android:exported="true">
154155

155156
<intent-filter android:label="@string/appbar_name">
156157
<action android:name="android.intent.action.MAIN" />
@@ -217,7 +218,8 @@
217218
android:configChanges="orientation|screenSize|uiMode"
218219
android:label="@string/setting"
219220
android:name=".ui.activities.PreferencesActivity"
220-
android:theme="@style/appCompatBlack">
221+
android:theme="@style/appCompatBlack"
222+
android:exported="false">
221223
<intent-filter>
222224
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
223225
<category android:name="android.intent.category.DEFAULT" />
@@ -228,7 +230,8 @@
228230
android:label="@string/textreader"
229231
android:name=".ui.activities.texteditor.TextEditorActivity"
230232
android:configChanges="uiMode"
231-
android:theme="@style/appCompatBlack">
233+
android:theme="@style/appCompatBlack"
234+
android:exported="true">
232235
<intent-filter
233236
tools:ignore="AppLinkUrlError"
234237
android:label="Amaze Text Editor">
@@ -242,6 +245,7 @@
242245

243246
</activity>
244247
<activity
248+
android:exported="true"
245249
android:label="@string/databasereader"
246250
android:name=".ui.activities.DatabaseViewerActivity"
247251
android:theme="@style/appCompatBlack"
@@ -303,7 +307,8 @@
303307
<service android:name=".asynchronous.services.ftp.FtpTileService"
304308
android:icon="@drawable/ic_ftp_dark"
305309
android:label="@string/ftp"
306-
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
310+
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
311+
android:exported="false">
307312
<intent-filter>
308313
<action
309314
android:name="android.service.quicksettings.action.QS_TILE" />

app/src/main/java/com/amaze/filemanager/filesystem/files/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public class FileUtils {
9696
private static final String TAG = FileUtils.class.getSimpleName();
9797

9898
private static final String[] COMPRESSED_FILE_EXTENSIONS =
99-
new String[] {"zip", "cab", "bz2", "ace", "bz", "gz", "7z", "jar", "apk", "xz", "lzma", "Z"};
99+
new String[] {"zip", "cab", "bz2", "ace", "bz", "gz", "7z", "jar", "apk", "xz", "lzma", "Z", "rar"};
100100

101101
public static final String FILE_PROVIDER_PREFIX = "storage_root";
102102
public static final String NOMEDIA_FILE = ".nomedia";

0 commit comments

Comments
 (0)