app head: channel creator page
This commit is contained in:
parent
d76cf4457e
commit
5f30cca79b
5 changed files with 71 additions and 5 deletions
src/main/java/io/lbry/browser/reactmodules
|
@ -354,4 +354,15 @@ public class UtilityModule extends ReactContextBaseJavaModule {
|
|||
context.sendBroadcast(intent);
|
||||
}
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
public void openDocumentPicker(String type) {
|
||||
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
|
||||
intent.setType(type);
|
||||
Activity activity = MainActivity.getActivity();
|
||||
if (activity != null) {
|
||||
activity.startActivityForResult(
|
||||
Intent.createChooser(intent, "Select a file"), MainActivity.DOCUMENT_PICKER_RESULT_CODE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue