Remove support v1
Support v1 is no longer used and we want to keep the codebase clean. Test: robotests still pass Bug: 70620533 Change-Id: Ic8af0f34aab510a533bd7a7ec5c059834395baf5
This commit is contained in:
@@ -21,7 +21,6 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.Settings.LegacySupportActivity;
|
||||
import com.android.settings.overlay.FeatureFactory;
|
||||
import com.android.settings.overlay.SupportFeatureProvider;
|
||||
import com.android.settings.search.BaseSearchIndexProvider;
|
||||
@@ -43,12 +42,10 @@ public class SupportDashboardActivity extends Activity implements Indexable {
|
||||
.getSupportFeatureProvider(this);
|
||||
|
||||
// try to launch support v2 if we have the feature provider
|
||||
if (supportFeatureProvider != null && supportFeatureProvider.isSupportV2Enabled()) {
|
||||
supportFeatureProvider.startSupportV2(this);
|
||||
} else {
|
||||
startActivity(new Intent(this, LegacySupportActivity.class));
|
||||
if (supportFeatureProvider != null) {
|
||||
supportFeatureProvider.startSupportV2(this);
|
||||
finish();
|
||||
}
|
||||
finish();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user