mirror of
https://github.com/nextcloud/android.git
synced 2025-07-23 01:02:01 +00:00
If branded client without push proxy, hide warning
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:

committed by
Andy Scherzinger

parent
d11dcdcb3c
commit
80a6447b6b
@ -28,6 +28,7 @@ import com.nextcloud.client.network.ClientFactory
|
||||
import com.nextcloud.client.network.ClientFactory.CreationException
|
||||
import com.nextcloud.client.preferences.AppPreferences
|
||||
import com.nextcloud.common.NextcloudClient
|
||||
import com.nextcloud.utils.BuildHelper.isFlavourGPlay
|
||||
import com.owncloud.android.R
|
||||
import com.owncloud.android.databinding.NotificationsLayoutBinding
|
||||
import com.owncloud.android.datamodel.ArbitraryDataProvider
|
||||
@ -175,6 +176,12 @@ class NotificationsActivity : AppCompatActivity(), NotificationsContract.View, I
|
||||
}
|
||||
} else {
|
||||
val pushUrl = resources.getString(R.string.push_server_url)
|
||||
|
||||
if (pushUrl.isEmpty() && isFlavourGPlay()) {
|
||||
// branded client without push server
|
||||
return
|
||||
}
|
||||
|
||||
if (pushUrl.isEmpty()) {
|
||||
snackbar = Snackbar.make(
|
||||
binding.emptyList.emptyListView,
|
||||
|
Reference in New Issue
Block a user