Reinsted accidentally removed code. Removed refresh repos action item.

This commit is contained in:
Peter Serwylo 2014-01-05 09:35:50 +11:00
parent 783d6aa4d1
commit 70576c72be
4 changed files with 16 additions and 5 deletions

@ -1 +1 @@
Subproject commit 75ea560049c9a256ca4fba0a70de1971aa852612
Subproject commit 66042fe4a38d5e96030144546290ba0404d24e28

View File

@ -719,6 +719,10 @@ public class DB {
if (oldVersion < 30) {
db.execSQL("alter table " + TABLE_REPO + " add column maxage integer not null default 0");
}
if (oldVersion < 33) {
db.execSQL("alter table " + TABLE_REPO + " add column version integer not null default 0");
}
if (oldVersion < 35) {
if (!columnExists(db, TABLE_REPO, "lastUpdated"))

View File

@ -127,11 +127,8 @@ public class FDroid extends FragmentActivity {
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuItem update = menu.add(Menu.NONE, UPDATE_REPO, 1, R.string.menu_update_repo).setIcon(
menu.add(Menu.NONE, UPDATE_REPO, 1, R.string.menu_update_repo).setIcon(
android.R.drawable.ic_menu_rotate);
MenuItemCompat.setShowAsAction(update,
MenuItemCompat.SHOW_AS_ACTION_ALWAYS |
MenuItemCompat.SHOW_AS_ACTION_WITH_TEXT);
menu.add(Menu.NONE, MANAGE_REPO, 2, R.string.menu_manage).setIcon(
android.R.drawable.ic_menu_agenda);
MenuItem search = menu.add(Menu.NONE, SEARCH, 3, R.string.menu_search).setIcon(

10
tests/local.properties Normal file
View File

@ -0,0 +1,10 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
# location of the SDK. This is only used by Ant
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=/opt/android-sdk