Add JavaDocs on created views
This commit is contained in:
parent
411b3129f9
commit
c8802fe5d0
|
@ -11,7 +11,16 @@ import androidx.appcompat.widget.AppCompatEditText;
|
|||
|
||||
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 NewPipeEditText(@NonNull final Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
|
|
@ -11,6 +11,14 @@ import androidx.appcompat.widget.AppCompatTextView;
|
|||
|
||||
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 NewPipeTextView(@NonNull final Context context) {
|
||||
|
|
Loading…
Reference in New Issue