Skip to content

Commit c8802fe

Browse files
committed
Add JavaDocs on created views
1 parent 411b312 commit c8802fe

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 8 additions & 0 deletions
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)