X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/89e7ad9e670c3534788f44fe593bd476458e16f7..b154fba6ee7e2dfb77ff10e20c20c080758d2a1d:/src/com/owncloud/android/ui/activity/FileDisplayActivity.java diff --git a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java index 53fa1f18..a7a25382 100644 --- a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -196,7 +196,7 @@ FileFragment.ContainerActivity, OnNavigationListener, OnSslUntrustedCertListener getSupportActionBar().setHomeButtonEnabled(true); // mandatory since Android ICS, according to the official documentation setSupportProgressBarIndeterminateVisibility(mSyncInProgress /*|| mRefreshSharesInProgress*/); // always AFTER setContentView(...) ; to work around bug in its implementation - showMessageView(); + setBackgroundText(); Log_OC.d(TAG, "onCreate() end"); } @@ -963,7 +963,7 @@ FileFragment.ContainerActivity, OnNavigationListener, OnSslUntrustedCertListener Log_OC.d(TAG, "Setting progress visibility to " + mSyncInProgress); setSupportProgressBarIndeterminateVisibility(mSyncInProgress /*|| mRefreshSharesInProgress*/); - showMessageView(); + setBackgroundText(); } @@ -984,7 +984,7 @@ FileFragment.ContainerActivity, OnNavigationListener, OnSslUntrustedCertListener * Show a text message on screen view for notifying user if content is * loading or folder is empty */ - private void showMessageView() { + private void setBackgroundText() { OCFileListFragment ocFileListFragment = getListOfFilesFragment(); if (ocFileListFragment != null) { int message = R.string.file_list_loading; @@ -992,7 +992,7 @@ FileFragment.ContainerActivity, OnNavigationListener, OnSslUntrustedCertListener // In case file list is empty message = R.string.file_list_empty; } - ocFileListFragment.setMessageforEmptyView(message); + ocFileListFragment.setMessageForEmptyList(getString(message)); } else { Log.e(TAG, "OCFileListFragment is null"); } @@ -1551,7 +1551,7 @@ FileFragment.ContainerActivity, OnNavigationListener, OnSslUntrustedCertListener setSupportProgressBarIndeterminateVisibility(true); - showMessageView(); + setBackgroundText(); } /** @@ -1653,5 +1653,5 @@ FileFragment.ContainerActivity, OnNavigationListener, OnSslUntrustedCertListener } onTransferStateChanged(file, false, false); } - + }