Add JavaDocs on created views

This commit is contained in:
TiA4f8R 2021-09-14 20:19:17 +02:00
parent 411b3129f9
commit c8802fe5d0
No known key found for this signature in database
GPG key ID: E6D3E7F5949450DD
2 changed files with 17 additions and 0 deletions

View file

@ -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);
}

View file

@ -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) {