Merge pull request #1685 from owncloud/change_overlay_synced_icons

Change overlay synced icons
This commit is contained in:
David A. Velasco 2016-06-01 17:24:27 +02:00
commit 77a9e62313
17 changed files with 13 additions and 21 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

BIN
res/drawable/ic_synced.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -54,7 +54,7 @@
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:src="@drawable/local_file_indicator" /> android:src="@drawable/ic_synced" />
<ImageView <ImageView
android:id="@+id/favoriteIcon" android:id="@+id/favoriteIcon"
@ -63,7 +63,7 @@
android:layout_gravity="bottom|right" android:layout_gravity="bottom|right"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:src="@drawable/ic_favorite" /> android:src="@drawable/ic_available_offline" />
</FrameLayout> </FrameLayout>
</LinearLayout> </LinearLayout>

View file

@ -54,7 +54,7 @@
android:layout_gravity="bottom|right" android:layout_gravity="bottom|right"
android:layout_marginTop="2dp" android:layout_marginTop="2dp"
android:layout_marginRight="2dp" android:layout_marginRight="2dp"
android:src="@drawable/local_file_indicator" /> android:src="@drawable/ic_synced" />
<ImageView <ImageView
android:id="@+id/favoriteIcon" android:id="@+id/favoriteIcon"
@ -63,7 +63,7 @@
android:layout_gravity="bottom|right" android:layout_gravity="bottom|right"
android:layout_marginBottom="2dp" android:layout_marginBottom="2dp"
android:layout_marginRight="2dp" android:layout_marginRight="2dp"
android:src="@drawable/ic_favorite" /> android:src="@drawable/ic_available_offline" />

View file

@ -45,7 +45,7 @@
android:layout_height="@dimen/file_icon_size" android:layout_height="@dimen/file_icon_size"
android:layout_gravity="top|right" android:layout_gravity="top|right"
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:src="@drawable/local_file_indicator" /> android:src="@drawable/ic_synced" />
<ImageView <ImageView
android:id="@+id/thumbnail" android:id="@+id/thumbnail"
@ -60,7 +60,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom|right" android:layout_gravity="bottom|right"
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:src="@drawable/ic_favorite" /> android:src="@drawable/ic_available_offline" />
</FrameLayout> </FrameLayout>
<LinearLayout <LinearLayout

View file

@ -230,8 +230,8 @@
<string name="auth_can_not_auth_against_server">Cannot authenticate to this server</string> <string name="auth_can_not_auth_against_server">Cannot authenticate to this server</string>
<string name="auth_account_does_not_exist">Account does not exist in the device yet</string> <string name="auth_account_does_not_exist">Account does not exist in the device yet</string>
<string name="favorite">Favorite</string> <string name="favorite">Set as available offline</string>
<string name="unfavorite">Unfavorite</string> <string name="unfavorite">Unset as available offline</string>
<string name="common_rename">Rename</string> <string name="common_rename">Rename</string>
<string name="common_remove">Remove</string> <string name="common_remove">Remove</string>
<string name="confirmation_remove_alert">"Do you really want to remove %1$s?"</string> <string name="confirmation_remove_alert">"Do you really want to remove %1$s?"</string>

View file

@ -269,37 +269,29 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
opsBinder != null && opsBinder != null &&
opsBinder.isSynchronizing(mAccount, file.getRemotePath()) opsBinder.isSynchronizing(mAccount, file.getRemotePath())
) { ) {
localStateView.setImageResource(R.drawable.synchronizing_file_indicator); localStateView.setImageResource(R.drawable.ic_synchronizing);
localStateView.setVisibility(View.VISIBLE); localStateView.setVisibility(View.VISIBLE);
} else if ( // downloading } else if ( // downloading
downloaderBinder != null && downloaderBinder != null &&
downloaderBinder.isDownloading(mAccount, file) downloaderBinder.isDownloading(mAccount, file)
) { ) {
localStateView.setImageResource( localStateView.setImageResource(R.drawable.ic_synchronizing);
file.isFolder() ?
R.drawable.synchronizing_file_indicator :
R.drawable.downloading_file_indicator
);
localStateView.setVisibility(View.VISIBLE); localStateView.setVisibility(View.VISIBLE);
} else if ( //uploading } else if ( //uploading
uploaderBinder != null && uploaderBinder != null &&
uploaderBinder.isUploading(mAccount, file) uploaderBinder.isUploading(mAccount, file)
) { ) {
localStateView.setImageResource( localStateView.setImageResource(R.drawable.ic_synchronizing);
file.isFolder() ?
R.drawable.synchronizing_file_indicator :
R.drawable.uploading_file_indicator
);
localStateView.setVisibility(View.VISIBLE); localStateView.setVisibility(View.VISIBLE);
} else if (file.getEtagInConflict() != null) { // conflict } else if (file.getEtagInConflict() != null) { // conflict
localStateView.setImageResource(R.drawable.conflict_file_indicator); localStateView.setImageResource(R.drawable.ic_synchronizing_error);
localStateView.setVisibility(View.VISIBLE); localStateView.setVisibility(View.VISIBLE);
} else if (file.isDown()) { } else if (file.isDown()) {
localStateView.setImageResource(R.drawable.local_file_indicator); localStateView.setImageResource(R.drawable.ic_synced);
localStateView.setVisibility(View.VISIBLE); localStateView.setVisibility(View.VISIBLE);
} }