From af4aaf6e2a7371416ed662814d84424f92543a86 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Wed, 19 May 2021 12:06:59 -0400 Subject: [PATCH] remove direct download function --- app/src/main/AndroidManifest.xml | 27 ---- .../activities/DirectDownload.java | 152 ------------------ app/src/main/res/layout/activity_direct.xml | 4 - 3 files changed, 183 deletions(-) delete mode 100644 app/src/main/java/awais/instagrabber/activities/DirectDownload.java delete mode 100644 app/src/main/res/layout/activity_direct.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d839e3d4..bc617ff1 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -77,33 +77,6 @@ android:screenOrientation="portrait" android:taskAffinity="awais.instagrabber.errorreport" android:theme="@android:style/Theme.DeviceDefault.Dialog" /> - - - - - - - - - - - - () { - @Override - public void doBefore() { - if (notificationManager == null) return; - final Notification fetchingPostNotification = new NotificationCompat.Builder(getApplicationContext(), Constants.DOWNLOAD_CHANNEL_ID) - .setCategory(NotificationCompat.CATEGORY_STATUS) - .setSmallIcon(R.drawable.ic_download) - .setAutoCancel(false) - .setPriority(NotificationCompat.PRIORITY_MIN) - .setContentText(getString(R.string.direct_download_loading)) - .build(); - notificationManager.notify(NOTIFICATION_ID, fetchingPostNotification); - } - - @Override - public void onResult(final Media result) { - if (notificationManager != null) notificationManager.cancel(NOTIFICATION_ID); - if (result == null) { - finish(); - return; - } - DownloadUtils.download(getApplicationContext(), result); - finish(); - } - }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); - } -} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_direct.xml b/app/src/main/res/layout/activity_direct.xml deleted file mode 100644 index c3f8343f..00000000 --- a/app/src/main/res/layout/activity_direct.xml +++ /dev/null @@ -1,4 +0,0 @@ - - \ No newline at end of file