|
|
@ -41,6 +41,7 @@ import android.support.v7.widget.Toolbar; |
|
|
|
import android.view.Menu; |
|
|
|
import android.view.Menu; |
|
|
|
import android.view.MenuItem; |
|
|
|
import android.view.MenuItem; |
|
|
|
import android.view.View; |
|
|
|
import android.view.View; |
|
|
|
|
|
|
|
import android.widget.Toast; |
|
|
|
|
|
|
|
|
|
|
|
import com.keylesspalace.tusky.fragment.ViewMediaFragment; |
|
|
|
import com.keylesspalace.tusky.fragment.ViewMediaFragment; |
|
|
|
import com.keylesspalace.tusky.pager.ImagePagerAdapter; |
|
|
|
import com.keylesspalace.tusky.pager.ImagePagerAdapter; |
|
|
@ -218,6 +219,10 @@ public class ViewMediaActivity extends BaseActivity implements ViewMediaFragment |
|
|
|
|
|
|
|
|
|
|
|
String filename = new File(url).getName(); |
|
|
|
String filename = new File(url).getName(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String toastText = String.format(getResources().getString(R.string.download_image), |
|
|
|
|
|
|
|
filename); |
|
|
|
|
|
|
|
Toast.makeText(this.getApplicationContext(), toastText, Toast.LENGTH_SHORT).show(); |
|
|
|
|
|
|
|
|
|
|
|
DownloadManager downloadManager = |
|
|
|
DownloadManager downloadManager = |
|
|
|
(DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); |
|
|
|
(DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE); |
|
|
|
|
|
|
|
|
|
|
|