Add optional feedback button for settings search
Adds mechanism for adding a button in the search screen and stubs to show and hide the button. Fixes: 35164702 Test: make -j40 RunSettingsRoboTests Change-Id: I34d245e84b62cedf2dc6e5de4ea336c5a99ffd31
This commit is contained in:
@@ -21,6 +21,7 @@ import android.app.Fragment;
|
||||
import android.app.FragmentManager;
|
||||
import android.os.Bundle;
|
||||
|
||||
import android.view.WindowManager;
|
||||
import com.android.settings.R;
|
||||
|
||||
public class SearchActivity extends Activity {
|
||||
@@ -29,6 +30,8 @@ public class SearchActivity extends Activity {
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.search_main);
|
||||
// Keeps layouts in-place when keyboard opens.
|
||||
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
|
||||
|
||||
FragmentManager fragmentManager = getFragmentManager();
|
||||
Fragment fragment = fragmentManager.findFragmentById(R.id.main_content);
|
||||
|
||||
Reference in New Issue
Block a user