changeset 501:aee5f34cc2db

updates for android10+
author Carl Byington <carl@five-ten-sg.com>
date Tue, 07 Jun 2022 16:13:47 -0700
parents 11d714165a2d
children 7e53f29f8b5a
files app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java	Tue Jun 07 16:10:58 2022 -0700
+++ b/app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java	Tue Jun 07 16:13:47 2022 -0700
@@ -82,7 +82,7 @@
     protected static final String TAG = "ConnectBot.HostListActivity";
     public final static int REQUEST_EDIT = 1;
     public final static int REQUEST_EULA = 2;
-    public final static int REQUEST_STORAGEMANAGER = 3;
+    public final static int REQUEST_STORAGE_MANAGER = 3;
 
     protected TerminalManager bound = null;
 
@@ -295,8 +295,7 @@
                 intent.setData(Uri.parse(String.format("package:%s",getApplicationContext().getPackageName())));
                 startActivityForResult(intent, REQUEST_STORAGE_MANAGER);
             } catch (Exception e) {
-                Intent intent = new Intent();
-                intent.setAction(Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION);
+                Intent intent = new Intent(Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION);
                 startActivityForResult(intent, REQUEST_STORAGE_MANAGER);
             }
         }