diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-11-06 13:00:42 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-11-06 14:57:50 -0800 |
commit | 85525173ce063305cc2b787fcfcb5f58a14410d4 (patch) | |
tree | 6b751863cb67e33811ee89aecd42d9748836fa4f /src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java | |
parent | 4dcc2617f5242a80e2e90a4d18c0c911020ddab9 (diff) | |
download | android_packages_apps_Trebuchet-85525173ce063305cc2b787fcfcb5f58a14410d4.tar.gz android_packages_apps_Trebuchet-85525173ce063305cc2b787fcfcb5f58a14410d4.tar.bz2 android_packages_apps_Trebuchet-85525173ce063305cc2b787fcfcb5f58a14410d4.zip |
Rearranging the code structure to allow replacing state logic.
Change-Id: I6f83d0f77045ba189f02dd465bf70ffc2a239aa1
Diffstat (limited to 'src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java')
-rw-r--r-- | src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java b/src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java new file mode 100644 index 000000000..e217f708e --- /dev/null +++ b/src_ui_overrides/com/android/launcher3/uioverrides/UiFactory.java @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2017 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.launcher3.uioverrides; + +import com.android.launcher3.Launcher; +import com.android.launcher3.VerticalSwipeController; +import com.android.launcher3.util.TouchController; + +public class UiFactory { + + public static TouchController[] createTouchControllers(Launcher launcher) { + return new TouchController[] { + new VerticalSwipeController(launcher), new PinchToOverviewListener(launcher)}; + } +} |