Skip to content

Commit

Permalink
ShareUtils:: mark fileProviderAuthority static
Browse files Browse the repository at this point in the history
  • Loading branch information
gsantner committed Jul 29, 2021
1 parent 3558f60 commit fc9269b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/src/main/java/net/gsantner/opoc/util/ShareUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ public class ShareUtil {
public final static int MIN_OVERWRITE_LENGTH = 5;

protected static String _lastCameraPictureFilepath;
protected static String _fileProviderAuthority;

protected Context _context;
protected String _fileProviderAuthority;
protected String _chooserTitle;

public ShareUtil(final Context context) {
Expand All @@ -119,9 +119,8 @@ public String getFileProviderAuthority() {
return _fileProviderAuthority;
}

public ShareUtil setFileProviderAuthority(final String fileProviderAuthority) {
public static void setFileProviderAuthority(final String fileProviderAuthority) {
_fileProviderAuthority = fileProviderAuthority;
return this;
}


Expand Down Expand Up @@ -231,9 +230,9 @@ public boolean shareStream(final File file, final String mimeType) {
intent.putExtra(Intent.EXTRA_STREAM, fileUri);
showChooser(intent, null);
return true;
} catch (Exception e) { // FileUriExposed(API24) / IllegalArgument
return false;
} catch (Exception ignored) { // FileUriExposed(API24) / IllegalArgument
}
return false;
}

/**
Expand Down

0 comments on commit fc9269b

Please sign in to comment.