Skip to content

Commit

Permalink
minor db fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitkh96 committed Jan 11, 2015
1 parent f9e6668 commit 6fa33b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
3 changes: 1 addition & 2 deletions src/com/amaze/filemanager/database/TabHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public class TabHandler extends SQLiteOpenHelper {
private static final String DATABASE_NAME = "explorer.db";
private static final String TABLE_TAB = "tab";

public static final String COLUMN_ID = "id";
public static final String COLUMN_TAB_NO = "tab_no";
public static final String COLUMN_LABEL = "label";
public static final String COLUMN_PATH = "path";
Expand All @@ -51,7 +50,7 @@ public TabHandler(Context context, String name, SQLiteDatabase.CursorFactory fac
public void onCreate(SQLiteDatabase sqLiteDatabase) {
String CREATE_TAB_TABLE = "CREATE TABLE " + TABLE_TAB + "("
+ COLUMN_TAB_NO
+ " INTEGER PRIMARY KEY," + COLUMN_LABEL + " TEXT,"
+ " INTEGER PRIMARY KEY,"
+ COLUMN_PATH + " TEXT,"+COLUMN_HOME+" TEXT" + ")";
sqLiteDatabase.execSQL(CREATE_TAB_TABLE);
}
Expand Down
19 changes: 0 additions & 19 deletions src/com/amaze/filemanager/fragments/TabFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -296,25 +296,6 @@ public void addTab(Tab text,int pos,String path) {
mSectionsPagerAdapter.notifyDataSetChanged();
mViewPager.setOffscreenPageLimit(4);
}
public void addTab1(String text,int k) {
android.support.v4.app.Fragment main = new Main();
Bundle b = new Bundle();
if (text != null && text.trim().length() != 0) {
b.putString("path", text);

}
b.putInt("no",k);
main.setArguments(b);
fragments.add(main);
tabs.add(main.getClass().getName());
mSectionsPagerAdapter.notifyDataSetChanged();
mViewPager.setCurrentItem(fragments.size()-1,true);

mViewPager.setOffscreenPageLimit(fragments.size()+1);
}
public void addZipViewerTab(String text) {
mainActivity.openZip(text);
}
public Fragment getTab() {
return fragments.get(mViewPager.getCurrentItem());
}
Expand Down

0 comments on commit 6fa33b7

Please sign in to comment.