mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +00:00
Set invisible placeholder for device ID (fixes #357).
This commit is contained in:
parent
c767259889
commit
b9dec163e0
3 changed files with 8 additions and 1 deletions
|
@ -180,6 +180,7 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
|
|||
return;
|
||||
|
||||
mDeviceId.setText(info.myID);
|
||||
mDeviceId.setVisibility(View.VISIBLE);
|
||||
mDeviceId.setOnTouchListener(new View.OnTouchListener() {
|
||||
@Override
|
||||
public boolean onTouch(View view, MotionEvent motionEvent) {
|
||||
|
|
|
@ -21,7 +21,10 @@
|
|||
android:id="@+id/device_id"
|
||||
android:layout_below="@id/device_id_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:typeface="monospace"
|
||||
android:text="@string/device_id_placeholder"
|
||||
android:visibility="invisible"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
|
|
@ -60,6 +60,9 @@
|
|||
<!-- DrawerFragment -->
|
||||
|
||||
|
||||
<!-- Placeholder for device ID field, to avoid layout changes. This is never visible to users. -->
|
||||
<string name="device_id_placeholder" translatable="false">xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx</string>
|
||||
|
||||
<!-- Same as download_title with a colon and space appended -->
|
||||
<string name="download_title_colon">Download:\u0020</string>
|
||||
|
||||
|
|
Loading…
Reference in a new issue