X-Git-Url: https://git.gag.com/?p=debian%2Fopenrocket;a=blobdiff_plain;f=android%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fandroid%2Factionbarcompat%2FActionBarListActivity.java;fp=android%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fandroid%2Factionbarcompat%2FActionBarListActivity.java;h=0000000000000000000000000000000000000000;hp=b8132089e683737ad26622a1e7a7127ddd382999;hb=9349577cdfdff682b2aabd6daa24fdc3a7449b58;hpb=30ba0a882f0c061176ba14dbf86d3d6fad096c02 diff --git a/android/src/net/sf/openrocket/android/actionbarcompat/ActionBarListActivity.java b/android/src/net/sf/openrocket/android/actionbarcompat/ActionBarListActivity.java deleted file mode 100644 index b8132089..00000000 --- a/android/src/net/sf/openrocket/android/actionbarcompat/ActionBarListActivity.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2006 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 net.sf.openrocket.android.actionbarcompat; - -import android.app.Activity; -import android.app.ListActivity; -import android.os.Bundle; -import android.view.Menu; -import android.view.MenuInflater; - -public abstract class ActionBarListActivity extends ListActivity { - final ActionBarHelper mActionBarHelper = ActionBarHelper.createInstance(this); - - /** - * Returns the {@link ActionBarHelper} for this activity. - */ - protected ActionBarHelper getActionBarHelper() { - return mActionBarHelper; - } - - /**{@inheritDoc}*/ - @Override - public MenuInflater getMenuInflater() { - return mActionBarHelper.getMenuInflater(super.getMenuInflater()); - } - - /**{@inheritDoc}*/ - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - mActionBarHelper.onCreate(savedInstanceState); - } - - /**{@inheritDoc}*/ - @Override - protected void onPostCreate(Bundle savedInstanceState) { - super.onPostCreate(savedInstanceState); - mActionBarHelper.onPostCreate(savedInstanceState); - } - - /** - * Base action bar-aware implementation for - * {@link Activity#onCreateOptionsMenu(android.view.Menu)}. - * - * Note: marking menu items as invisible/visible is not currently supported. - */ - @Override - public boolean onCreateOptionsMenu(Menu menu) { - boolean retValue = false; - retValue |= mActionBarHelper.onCreateOptionsMenu(menu); - retValue |= super.onCreateOptionsMenu(menu); - return retValue; - } - - /**{@inheritDoc}*/ - @Override - protected void onTitleChanged(CharSequence title, int color) { - mActionBarHelper.onTitleChanged(title, color); - super.onTitleChanged(title, color); - } -}