Support for device management, limits, and contact requests.
// FREEBIE
BIN
res/drawable-hdpi/ic_devices_black_48dp.png
Normal file
After Width: | Height: | Size: 346 B |
BIN
res/drawable-hdpi/ic_devices_grey600_48dp.png
Normal file
After Width: | Height: | Size: 352 B |
BIN
res/drawable-mdpi/ic_devices_black_48dp.png
Normal file
After Width: | Height: | Size: 280 B |
BIN
res/drawable-mdpi/ic_devices_grey600_48dp.png
Normal file
After Width: | Height: | Size: 287 B |
BIN
res/drawable-xhdpi/ic_devices_black_48dp.png
Normal file
After Width: | Height: | Size: 420 B |
BIN
res/drawable-xhdpi/ic_devices_grey600_48dp.png
Normal file
After Width: | Height: | Size: 430 B |
BIN
res/drawable-xxhdpi/ic_devices_black_48dp.png
Normal file
After Width: | Height: | Size: 574 B |
BIN
res/drawable-xxhdpi/ic_devices_grey600_48dp.png
Normal file
After Width: | Height: | Size: 609 B |
BIN
res/drawable-xxxhdpi/ic_devices_black_48dp.png
Normal file
After Width: | Height: | Size: 706 B |
BIN
res/drawable-xxxhdpi/ic_devices_grey600_48dp.png
Normal file
After Width: | Height: | Size: 763 B |
39
res/layout/device_list_fragment.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="16dip"
|
||||
android:paddingRight="16dip">
|
||||
|
||||
<LinearLayout android:id="@+id/progress_container"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone" >
|
||||
|
||||
<ProgressBar android:id="@+id/progress"
|
||||
android:indeterminate="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" >
|
||||
</ProgressBar>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView android:id="@+id/empty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center|center_vertical"
|
||||
android:gravity="center|center_vertical"
|
||||
android:textSize="20sp"
|
||||
android:visibility="gone"
|
||||
android:text="@string/device_list_fragment__no_devices_paired"/>
|
||||
|
||||
<ListView android:id="@id/android:list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:drawSelectorOnTop="false"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
33
res/layout/device_list_item_view.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<org.thoughtcrime.securesms.DeviceListItem xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp">
|
||||
|
||||
<TextView android:id="@+id/name"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="?attr/conversation_list_item_contact_color"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="marquee"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView android:id="@+id/created"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?attr/conversation_list_item_subject_color"
|
||||
android:fontFamily="sans-serif-light" />
|
||||
|
||||
<TextView android:id="@+id/active"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?attr/conversation_list_item_subject_color"
|
||||
android:fontFamily="sans-serif-light"
|
||||
android:layout_marginBottom="8dp" />
|
||||
|
||||
</org.thoughtcrime.securesms.DeviceListItem>
|
@@ -122,6 +122,7 @@
|
||||
<attr name="pref_ic_app_protection" format="reference" />
|
||||
<attr name="pref_ic_appearance" format="reference" />
|
||||
<attr name="pref_ic_storage" format="reference" />
|
||||
<attr name="pref_ic_devices" format="reference" />
|
||||
<attr name="pref_ic_advanced" format="reference" />
|
||||
|
||||
<attr name="app_protect_timeout_picker_color" format="reference"/>
|
||||
|
@@ -166,6 +166,20 @@
|
||||
<string name="DateUtils_now">Now</string>
|
||||
<string name="DateUtils_minutes_ago">%d min</string>
|
||||
|
||||
<!-- DeviceListActivity -->
|
||||
<string name="DeviceListActivity_disconnect_s">Disconnect \'%s\'?</string>
|
||||
<string name="DeviceListActivity_by_disconnecting_this_device_it_will_no_longer_be_able_to_send_or_receive">By disconnecting this device, it will no longer be able to send or receive messages.</string>
|
||||
<string name="DeviceListActivity_network_connection_failed">Network connection failed...</string>
|
||||
<string name="DeviceListActivity_try_again">Try again</string>
|
||||
<string name="DeviceListActivity_disconnecting_device">Disconnecting device..</string>
|
||||
<string name="DeviceListActivity_disconnecting_device_no_ellipse">Disconnecting device</string>
|
||||
<string name="DeviceListActivity_network_failed">Network failed!</string>
|
||||
|
||||
<!-- DeviceListItem -->
|
||||
<string name="DeviceListItem_unnamed_device">Unnamed device</string>
|
||||
<string name="DeviceListItem_created_s">Created %s</string>
|
||||
<string name="DeviceListItem_last_active_s">Last active %s</string>
|
||||
|
||||
<!-- ShareActivity -->
|
||||
<string name="ShareActivity_share_with">Share with</string>
|
||||
|
||||
@@ -283,6 +297,7 @@
|
||||
<string name="DeviceProvisioningActivity_content_progress_no_device">No device found.</string>
|
||||
<string name="DeviceProvisioningActivity_content_progress_network_error">Network error.</string>
|
||||
<string name="DeviceProvisioningActivity_content_progress_key_error">Invalid QR code.</string>
|
||||
<string name="DeviceProvisioningActivity_sorry_you_have_too_many_devices_registered_already">Sorry, you have too many devices registered already, try removing some...</string>
|
||||
|
||||
<!-- PassphrasePromptActivity -->
|
||||
<string name="PassphrasePromptActivity_enter_passphrase">Enter passphrase</string>
|
||||
@@ -532,6 +547,9 @@
|
||||
<string name="country_selection_fragment__loading_countries">Loading countries...</string>
|
||||
<string name="country_selection_fragment__search">Search</string>
|
||||
|
||||
<!-- device_list_fragment -->
|
||||
<string name="device_list_fragment__no_devices_paired">No devices paired...</string>
|
||||
|
||||
<!-- log_submit_activity -->
|
||||
<string name="log_submit_activity__log_fetch_failed">Could not grab logs from your device. You can still use ADB to get debug logs instead.</string>
|
||||
<string name="log_submit_activity__thanks">Thanks for your help!</string>
|
||||
@@ -715,6 +733,7 @@
|
||||
<string name="AndroidManifest__media_overview">All images</string>
|
||||
<string name="AndroidManifest__media_overview_named">All images with %1$s</string>
|
||||
<string name="AndroidManifest__message_details">Message Details</string>
|
||||
<string name="AndroidManifest_manage_paired_devices">Manage paired devices</string>
|
||||
|
||||
<!-- arrays.xml -->
|
||||
<string name="arrays__import_export">Import / export</string>
|
||||
@@ -959,6 +978,7 @@
|
||||
<string name="transport_selection_list_item__transport_icon">Transport icon</string>
|
||||
|
||||
|
||||
|
||||
<!-- EOF -->
|
||||
|
||||
</resources>
|
||||
|
@@ -173,6 +173,7 @@
|
||||
<item name="pref_ic_app_protection">@drawable/ic_app_protection_black</item>
|
||||
<item name="pref_ic_appearance">@drawable/ic_brightness_6_black</item>
|
||||
<item name="pref_ic_storage">@drawable/ic_delete_black</item>
|
||||
<item name="pref_ic_devices">@drawable/ic_devices_black_48dp</item>
|
||||
<item name="pref_ic_advanced">@drawable/ic_advanced_black</item>
|
||||
|
||||
<item name="app_protect_timeout_picker_color">@style/BetterPickersDialogFragment.Light</item>
|
||||
@@ -297,6 +298,7 @@
|
||||
<item name="pref_ic_app_protection">@drawable/ic_app_protection_gray</item>
|
||||
<item name="pref_ic_appearance">@drawable/ic_brightness_6_gray</item>
|
||||
<item name="pref_ic_storage">@drawable/ic_delete_gray</item>
|
||||
<item name="pref_ic_devices">@drawable/ic_devices_grey600_48dp</item>
|
||||
<item name="pref_ic_advanced">@drawable/ic_advanced_gray</item>
|
||||
|
||||
<item name="app_protect_timeout_picker_color">@style/BetterPickersDialogFragment</item>
|
||||
|
@@ -21,6 +21,12 @@
|
||||
android:title="@string/preferences__delete_old_messages"
|
||||
android:icon="?pref_ic_storage"/>
|
||||
|
||||
<Preference android:key="preference_category_devices"
|
||||
android:title="Devices"
|
||||
android:icon="?pref_ic_devices">
|
||||
|
||||
</Preference>
|
||||
|
||||
<Preference android:key="preference_category_advanced"
|
||||
android:title="@string/preferences__advanced"
|
||||
android:icon="?pref_ic_advanced"/>
|
||||
|