Skip to content

Commit 12934dc

Browse files
committed
Add JavaDocs on created classes
1 parent c5d6e05 commit 12934dc

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

app/src/main/java/org/schabi/newpipe/views/NewPipeEditText.java

+9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@
1111

1212
import org.schabi.newpipe.util.external_communication.ShareUtils;
1313

14+
/**
15+
* An {@link AppCompatEditText} which uses {@link ShareUtils#shareText(Context, String, String)}
16+
* when sharing selected text by using the {@code Share} command of the floating actions.
17+
* <p>
18+
* This allows NewPipe to show Android share sheet instead of EMUI share sheet when sharing text
19+
* from {@link AppCompatEditText} on EMUI devices.
20+
* </p>
21+
*/
1422
public class NewPipeEditText extends AppCompatEditText {
23+
1524
public NewPipeEditText(@NonNull final Context context) {
1625
super(context);
1726
}

app/src/main/java/org/schabi/newpipe/views/NewPipeTextView.java

+8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111

1212
import org.schabi.newpipe.util.external_communication.ShareUtils;
1313

14+
/**
15+
* An {@link AppCompatTextView} which uses {@link ShareUtils#shareText(Context, String, String)}
16+
* when sharing selected text by using the {@code Share} command of the floating actions.
17+
* <p>
18+
* This allows NewPipe to show Android share sheet instead of EMUI share sheet when sharing text
19+
* from {@link AppCompatTextView} on EMUI devices.
20+
* </p>
21+
*/
1422
public class NewPipeTextView extends AppCompatTextView {
1523

1624
public NewPipeTextView(@NonNull final Context context) {

0 commit comments

Comments
 (0)