MainActivity: cleanup unused device admin requests and text

This commit is contained in:
Peter Cai 2021-03-13 16:35:27 +08:00
parent c24d71eddb
commit 533e5bc148
2 changed files with 0 additions and 10 deletions

View File

@ -47,7 +47,6 @@ public class MainActivity extends AppCompatActivity {
private static final int REQUEST_PROVISION_PROFILE = 1;
private static final int REQUEST_START_SERVICE_IN_WORK_PROFILE = 2;
private static final int REQUEST_SET_DEVICE_ADMIN = 3;
private static final int REQUEST_TRY_START_SERVICE_IN_WORK_PROFILE = 4;
private static final int REQUEST_DOCUMENTS_CHOOSE_APK = 5;
@ -497,14 +496,6 @@ public class MainActivity extends AppCompatActivity {
registerStartActivityProxies();
startKiller();
buildView();
} else if (requestCode == REQUEST_SET_DEVICE_ADMIN) {
if (resultCode == RESULT_OK) {
// Device Admin is now set, go ahead to provisioning (or initialization)
init();
} else {
Toast.makeText(this, getString(R.string.device_admin_toast), Toast.LENGTH_LONG).show();
finish();
}
} else if (requestCode == REQUEST_DOCUMENTS_CHOOSE_APK && resultCode == RESULT_OK && data != null) {
Uri uri = data.getData();
UriForwardProxy proxy = new UriForwardProxy(getApplicationContext(), uri);

View File

@ -75,7 +75,6 @@
<string name="settings_patreon_url" translatable="false">https://www.patreon.com/PeterCxy</string>
<!-- Toast Long Texts -->
<string name="device_admin_toast">You have to grant Device Admin permission for Shelter to work. Please try again.</string>
<string name="provision_still_pending">Shelter is still being set up. You should be seeing a notification soon from Shelter, which you <b>must click on</b> to finish the setup process. If you do not see the notification, please disable Do Not Disturb mode and try again.</string>
<string name="provision_finished">Shelter setup complete. Now restarting Shelter. If Shelter didn\'t start automatically, you may launch it again from your launcher.</string>
<string name="msg_device_unsupported">Permission is denied or Unsupported device</string>