Add JavaDocs on created views
This commit is contained in:
parent
ddc3916437
commit
098f781b05
2 changed files with 17 additions and 0 deletions
|
|
@ -11,7 +11,16 @@ import androidx.appcompat.widget.AppCompatEditText;
|
||||||
|
|
||||||
import org.schabi.newpipe.util.external_communication.ShareUtils;
|
import org.schabi.newpipe.util.external_communication.ShareUtils;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An {@link AppCompatEditText} which uses {@link ShareUtils#shareText(Context, String, String)}
|
||||||
|
* when sharing selected text by using the {@code Share} command of the floating actions.
|
||||||
|
* <p>
|
||||||
|
* This allows NewPipe to show Android share sheet instead of EMUI share sheet when sharing text
|
||||||
|
* from {@link AppCompatEditText} on EMUI devices.
|
||||||
|
* </p>
|
||||||
|
*/
|
||||||
public class NewPipeEditText extends AppCompatEditText {
|
public class NewPipeEditText extends AppCompatEditText {
|
||||||
|
|
||||||
public NewPipeEditText(@NonNull final Context context) {
|
public NewPipeEditText(@NonNull final Context context) {
|
||||||
super(context);
|
super(context);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,14 @@ import androidx.appcompat.widget.AppCompatTextView;
|
||||||
|
|
||||||
import org.schabi.newpipe.util.external_communication.ShareUtils;
|
import org.schabi.newpipe.util.external_communication.ShareUtils;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An {@link AppCompatTextView} which uses {@link ShareUtils#shareText(Context, String, String)}
|
||||||
|
* when sharing selected text by using the {@code Share} command of the floating actions.
|
||||||
|
* <p>
|
||||||
|
* This allows NewPipe to show Android share sheet instead of EMUI share sheet when sharing text
|
||||||
|
* from {@link AppCompatTextView} on EMUI devices.
|
||||||
|
* </p>
|
||||||
|
*/
|
||||||
public class NewPipeTextView extends AppCompatTextView {
|
public class NewPipeTextView extends AppCompatTextView {
|
||||||
|
|
||||||
public NewPipeTextView(@NonNull final Context context) {
|
public NewPipeTextView(@NonNull final Context context) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue