mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
remove support for NC12
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
9b79b85ff5
commit
051423cf21
6 changed files with 8 additions and 23 deletions
|
@ -101,9 +101,6 @@ public interface UserAccountManager extends CurrentAccountProvider {
|
||||||
@NonNull
|
@NonNull
|
||||||
OwnCloudVersion getServerVersion(Account account);
|
OwnCloudVersion getServerVersion(Account account);
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
boolean isSearchSupported(@Nullable Account account);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if user's account supports media streaming. This is a property of server where user has his account.
|
* Check if user's account supports media streaming. This is a property of server where user has his account.
|
||||||
*
|
*
|
||||||
|
|
|
@ -306,11 +306,6 @@ public class UserAccountManagerImpl implements UserAccountManager {
|
||||||
return serverVersion;
|
return serverVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isSearchSupported(Account account) {
|
|
||||||
return account != null && getServerVersion(account).isSearchSupported();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isMediaStreamingSupported(Account account) {
|
public boolean isMediaStreamingSupported(Account account) {
|
||||||
return account != null && getServerVersion(account).isMediaStreamingSupported();
|
return account != null && getServerVersion(account).isMediaStreamingSupported();
|
||||||
|
|
|
@ -122,8 +122,8 @@ import static com.owncloud.android.ui.activity.ContactsPreferenceActivity.PREFER
|
||||||
*/
|
*/
|
||||||
public class MainApp extends MultiDexApplication implements HasAndroidInjector {
|
public class MainApp extends MultiDexApplication implements HasAndroidInjector {
|
||||||
|
|
||||||
public static final OwnCloudVersion OUTDATED_SERVER_VERSION = OwnCloudVersion.nextcloud_13;
|
public static final OwnCloudVersion OUTDATED_SERVER_VERSION = OwnCloudVersion.nextcloud_15;
|
||||||
public static final OwnCloudVersion MINIMUM_SUPPORTED_SERVER_VERSION = OwnCloudVersion.nextcloud_12;
|
public static final OwnCloudVersion MINIMUM_SUPPORTED_SERVER_VERSION = OwnCloudVersion.nextcloud_13;
|
||||||
|
|
||||||
private static final String TAG = MainApp.class.getSimpleName();
|
private static final String TAG = MainApp.class.getSimpleName();
|
||||||
public static final String DOT = ".";
|
public static final String DOT = ".";
|
||||||
|
|
|
@ -1307,7 +1307,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
|
||||||
DisplayUtils.showServerOutdatedSnackbar(this, Snackbar.LENGTH_INDEFINITE);
|
DisplayUtils.showServerOutdatedSnackbar(this, Snackbar.LENGTH_INDEFINITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
webViewLoginMethod = mServerInfo.mVersion.isWebLoginSupported() && !forceOldLoginMethod;
|
webViewLoginMethod = !forceOldLoginMethod;
|
||||||
|
|
||||||
if (webViewUser != null && !webViewUser.isEmpty() &&
|
if (webViewUser != null && !webViewUser.isEmpty() &&
|
||||||
webViewPassword != null && !webViewPassword.isEmpty()) {
|
webViewPassword != null && !webViewPassword.isEmpty()) {
|
||||||
|
|
|
@ -371,9 +371,7 @@ public abstract class DrawerActivity extends ToolbarActivity
|
||||||
getContentResolver());
|
getContentResolver());
|
||||||
OCCapability capability = storageManager.getCapability(user.getAccountName());
|
OCCapability capability = storageManager.getCapability(user.getAccountName());
|
||||||
|
|
||||||
boolean hasSearchSupport = user.getServer().getVersion().isSearchSupported();
|
DrawerMenuUtil.filterSearchMenuItems(menu, user.toPlatformAccount(), getResources(), true);
|
||||||
|
|
||||||
DrawerMenuUtil.filterSearchMenuItems(menu, user.toPlatformAccount(), getResources(), hasSearchSupport);
|
|
||||||
DrawerMenuUtil.filterTrashbinMenuItem(menu, user.toPlatformAccount(), capability, accountManager);
|
DrawerMenuUtil.filterTrashbinMenuItem(menu, user.toPlatformAccount(), capability, accountManager);
|
||||||
DrawerMenuUtil.filterActivityMenuItem(menu, capability);
|
DrawerMenuUtil.filterActivityMenuItem(menu, capability);
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,6 @@ import android.widget.ProgressBar;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||||
import com.nextcloud.client.account.User;
|
|
||||||
import com.nextcloud.client.account.UserAccountManager;
|
import com.nextcloud.client.account.UserAccountManager;
|
||||||
import com.nextcloud.client.di.Injectable;
|
import com.nextcloud.client.di.Injectable;
|
||||||
import com.nextcloud.client.preferences.AppPreferences;
|
import com.nextcloud.client.preferences.AppPreferences;
|
||||||
|
@ -305,14 +304,10 @@ public class ExtendedListFragment extends Fragment implements
|
||||||
handler.postDelayed(new Runnable() {
|
handler.postDelayed(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
User user = accountManager.getUser();
|
EventBus.getDefault().post(new SearchEvent(query,
|
||||||
if (user.getServer().getVersion().isSearchSupported()) {
|
SearchRemoteOperation.SearchType.FILE_SEARCH,
|
||||||
EventBus.getDefault().post(new SearchEvent(query,
|
SearchEvent.UnsetType.NO_UNSET));
|
||||||
SearchRemoteOperation.SearchType.FILE_SEARCH, SearchEvent.UnsetType.NO_UNSET));
|
|
||||||
} else {
|
|
||||||
OCFileListAdapter fileListListAdapter = (OCFileListAdapter) adapter;
|
|
||||||
fileListListAdapter.getFilter().filter(query);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}, delay);
|
}, delay);
|
||||||
} else if (adapter instanceof LocalFileListAdapter) {
|
} else if (adapter instanceof LocalFileListAdapter) {
|
||||||
|
|
Loading…
Reference in a new issue