removed the temp screen rotation button

Change-Id: I26d5a840270065e43d4f66b3c53c7e9d52ce4200
This commit is contained in:
Michael Jurka 2010-08-16 20:48:05 -07:00
parent 80baf5a6b3
commit b2c838c2eb
3 changed files with 7 additions and 37 deletions

View File

@ -5,7 +5,6 @@
public void onClickSearchButton(android.view.View); public void onClickSearchButton(android.view.View);
public void onClickConfigureButton(android.view.View); public void onClickConfigureButton(android.view.View);
public void onClickAllAppsButton(android.view.View); public void onClickAllAppsButton(android.view.View);
public void onClickRotateButton(android.view.View);
} }
-keep class com.android.launcher2.CellLayout { -keep class com.android.launcher2.CellLayout {

View File

@ -45,32 +45,16 @@
<include android:id="@+id/cell5" layout="@layout/workspace_screen" /> <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
</com.android.launcher2.Workspace> </com.android.launcher2.Workspace>
<RelativeLayout <ImageView
android:id="@+id/search_button_cluster" android:id="@+id/search_button"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="top|left"> android:layout_gravity="top|left"
android:src="@drawable/search_button"
<ImageView android:onClick="onClickSearchButton"
android:id="@+id/search_button" android:focusable="true"
android:layout_width="wrap_content" android:clickable="true"/>
android:layout_height="wrap_content"
android:src="@drawable/search_button"
android:onClick="onClickSearchButton"
android:focusable="true"
android:clickable="true"/>
<ImageView
android:id="@+id/rotate_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/rotate_button"
android:onClick="onClickRotateButton"
android:focusable="true"
android:clickable="true"
android:layout_toRightOf="@id/search_button" />
</RelativeLayout>
<RelativeLayout <RelativeLayout
android:id="@+id/all_apps_button_cluster" android:id="@+id/all_apps_button_cluster"

View File

@ -1678,19 +1678,6 @@ public final class Launcher extends Activity
addItems(); addItems();
} }
/**
* Temporary: to allow us to test rotation in the launcher.
*
* @param v The view that was clicked.
*/
public void onClickRotateButton(View v) {
// TODO: this method is temporary. Remove it.
setRequestedOrientation(
(getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
? ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
: ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
/** /**
* Event handler for the "grid" button that appears on the home screen, which * Event handler for the "grid" button that appears on the home screen, which
* enters all apps mode. * enters all apps mode.