-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(capture-sdk): Use new photo-picker.
Now we are using new photo picker, for devices that doesn't have backdrop version, we use the same approach with list of apps PP-198
- Loading branch information
jackkray
committed
Jul 11, 2024
1 parent
fa05e8f
commit 167cae0
Showing
7 changed files
with
162 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...net/gini/android/capture/internal/fileimport/providerchooser/ProvidersAppWrapperItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package net.gini.android.capture.internal.fileimport.providerchooser; | ||
|
||
import android.graphics.drawable.Drawable; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
/** | ||
* Internal use only. | ||
* | ||
* @suppress | ||
*/ | ||
public class ProvidersAppWrapperItem extends ProvidersItem { | ||
|
||
private final Drawable mIcon; | ||
private final String mText; | ||
|
||
public ProvidersAppWrapperItem(@NonNull final Drawable icon, @NonNull final String text) { | ||
super(FileProviderItemType.APP_WRAPPER_PHOTO_PICKER); | ||
mIcon = icon; | ||
mText = text; | ||
} | ||
|
||
public Drawable getDrawableIcon() { | ||
return mIcon; | ||
} | ||
|
||
public String getText() { | ||
return mText; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters