1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-10 20:15:54 +00:00

Merge pull request #478 from Zillode/bump-0.12.1

Bump 0.12.1
This commit is contained in:
Felix Ableitner 2015-11-09 15:06:01 +01:00
commit be6605b6c6
5 changed files with 14 additions and 7 deletions

@ -1 +1 @@
Subproject commit f3dc78d457d119dbffba42332f499151a5705ef4 Subproject commit 58523060f02c7900ade6a2cc537a925f8d7de145

View file

@ -1,7 +1,10 @@
# Fix appcompat-v7 v21.0.0 causing crash on Samsung devices with Android v4.2.2 (https://code.google.com/p/android/issues/detail?id=78377) # Fix appcompat-v7 v21.0.0 causing crash on Samsung devices with Android v4.2.2 (https://code.google.com/p/android/issues/detail?id=78377)
-keep class !android.support.v7.internal.view.menu.MenuBuilder, !android.support.v7.internal.view.menu.SubMenuBuilder, android.support.v7.** { *; } -keep class !android.support.v7.internal.view.menu.MenuBuilder, !android.support.v7.internal.view.menu.SubMenuBuilder, android.support.v7.** { *; }
-keep interface android.support.v7.** { *; } -keep interface android.support.v7.** { *; }
-keep class android.support.v7.widget.ShareActionProvider { *; } -keep class android.support.v7.internal.** { *; }
-keep interface android.support.v7.internal.** { *; }
-keep class android.support.v7.** { *; }
-keep interface android.support.v7.** { *; }
# Enable reflective access to mX509Certificate # Enable reflective access to mX509Certificate
-keepclassmembers class android.net.http.SslCertificate { -keepclassmembers class android.net.http.SslCertificate {

View file

@ -119,6 +119,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
public String address; public String address;
public String clientVersion; public String clientVersion;
public int completion; public int completion;
public boolean connected;
} }
public static class Model { public static class Model {
@ -583,6 +584,7 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener,
c.address = conn.getString("address"); c.address = conn.getString("address");
c.clientVersion = conn.getString("clientVersion"); c.clientVersion = conn.getString("clientVersion");
c.completion = getDeviceCompletion(deviceId); c.completion = getDeviceCompletion(deviceId);
c.connected = conn.getBoolean("connected");
Connection prev = (mPreviousConnections.containsKey(deviceId)) Connection prev = (mPreviousConnections.containsKey(deviceId))
? mPreviousConnections.get(deviceId) ? mPreviousConnections.get(deviceId)

View file

@ -55,7 +55,7 @@ public class DevicesAdapter extends ArrayAdapter<RestApi.Device>
name.setText(getItem(position).name); name.setText(getItem(position).name);
Resources r = getContext().getResources(); Resources r = getContext().getResources();
if (conn != null) { if (conn != null && conn.connected) {
if (conn.completion == 100) { if (conn.completion == 100) {
status.setText(r.getString(R.string.device_up_to_date)); status.setText(r.getString(R.string.device_up_to_date));
status.setTextColor(r.getColor(R.color.text_green)); status.setTextColor(r.getColor(R.color.text_green));

View file

@ -2,7 +2,8 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/widget_toolbar" /> <include layout="@layout/widget_toolbar" />
@ -11,7 +12,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:scrollbars="vertical" android:scrollbars="vertical"
android:fillViewport="true"> android:fillViewport="true"
android:visibility="visible">
<TextView <TextView
android:id="@+id/log" android:id="@+id/log"
@ -19,8 +21,8 @@
android:textSize="12sp" android:textSize="12sp"
android:textIsSelectable="true" android:textIsSelectable="true"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:visibility="visible" />
</ScrollView> </ScrollView>
</LinearLayout> </LinearLayout>