Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android: Add a text field to display the devices network address #1930

Merged

Conversation

DDRBoxman
Copy link
Contributor

No description provided.

@DDRBoxman DDRBoxman force-pushed the android_network_address branch from eb6119b to 35df3ad Compare December 21, 2023 06:45
@DDRBoxman DDRBoxman changed the title Add a text field to display the devices network address android: Add a text field to display the devices network address Dec 21, 2023
if (!address.getAddress().isLinkLocalAddress() && !address.getAddress().isLoopbackAddress()) {
InetAddress address1 = address.getAddress();
String hostAddress = address1.getHostAddress();
if (hostAddress != null && hostAddress.contains(".")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instanceof Inet4Address?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah that's definitely cleaner, thanks.

@DDRBoxman DDRBoxman force-pushed the android_network_address branch from 35df3ad to c4c1044 Compare December 21, 2023 17:50
Comment on lines -38 to +63
android:id="@+id/log_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dip" />
android:id="@+id/log_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="10dip" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please watch out for (unrelated) whitespace changes next time. If you think whitespace (or coding style) should be changed, make this a separate commit. Cramming multiple things into one commit makes understanding the changes harder than necessary.

@MaxKellermann MaxKellermann merged commit 59ed18e into MusicPlayerDaemon:master Dec 22, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants