Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a1218ac authored by danielwbhuang's avatar danielwbhuang
Browse files

Create KeyboardShortcutsModule and new Flag

1. Add KeyboardShortcutsModule
2. Add flag: SHORTCUT_LIST_SEARCH_LAYOUT

Bug: 259352579
Test: manual
Change-Id: I236ca7965bed04af170a7ab83dbe711284feca63
parent 75383262
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -523,4 +523,9 @@ object Flags {

    // TODO(b259590361): Tracking bug
    val EXPERIMENTAL_FLAG = unreleasedFlag(2, "exp_flag_release")

    // 2600 - keyboard shortcut
    // TODO(b/259352579): Tracking Bug
    @JvmField
    val SHORTCUT_LIST_SEARCH_LAYOUT = unreleasedFlag(2600, "shortcut_list_search_layout")
}
+40 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2023 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.systemui.statusbar;

import android.content.BroadcastReceiver;

import dagger.Binds;
import dagger.Module;
import dagger.multibindings.ClassKey;
import dagger.multibindings.IntoMap;

/**
 * Module for {@link com.android.systemui.KeyboardShortcutsReceiver}.
 */
@Module
public abstract class KeyboardShortcutsModule {

    /**
     *
     */
    @Binds
    @IntoMap
    @ClassKey(KeyboardShortcutsReceiver.class)
    public abstract BroadcastReceiver bindKeyboardShortcutsReceiver(
            KeyboardShortcutsReceiver broadcastReceiver);
}