Content-Length: 227621 | pFad | http://github.com/AnshGaikwad/Notes-Maker/commit/9e216c75f0340e1be2776799eea8d014258bc3c9

26 changed cloud file adapter · AnshGaikwad/Notes-Maker@9e216c7 · GitHub
Skip to content

Commit

Permalink
changed cloud file adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
AnshGaikwad committed Jan 16, 2021
1 parent 7266d8c commit 9e216c7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.dscvitpune.notesmaker.cloud;

import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
Expand Down Expand Up @@ -123,6 +124,7 @@ public void onClick(View v) {
PopupMenu popupMenu = new PopupMenu(v.getContext(), v);
popupMenu.inflate(R.menu.cloud_file_menu);
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
@SuppressLint("NonConstantResourceId")
@Override
public boolean onMenuItemClick(MenuItem item) {
switch (item.getItemId()) {
Expand Down Expand Up @@ -160,7 +162,7 @@ public int getItemCount() {
return mFilteredList.size();
}

private boolean deleteFile(final StorageReference storageReference) {
private void deleteFile(final StorageReference storageReference) {
AlertDialog dialog = new AlertDialog.Builder(mContext)
.setTitle("Delete File on Cloud")
.setMessage("Once you delete this file it will disappear forever.\n Are you sure you want to delete?")
Expand All @@ -179,7 +181,6 @@ public void onSuccess(Void aVoid) {
.setNeutralButton("Cancel", null)
.create();
dialog.show();
return false;
}

@Override
Expand Down

0 comments on commit 9e216c7

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/AnshGaikwad/Notes-Maker/commit/9e216c75f0340e1be2776799eea8d014258bc3c9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy