Skip to content

Conversation

@Veda345
Copy link

@Veda345 Veda345 commented Aug 6, 2016

Воронина Веда

this.name = name;
}

public void setCover_small(String cover_small) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Немного не джава-вэй. camalCaseEverywhere:)

@Veda345
Copy link
Author

Veda345 commented Aug 8, 2016

Подправила, чуть позже добавляю AutoValue + Moshi + AutoParcel

Log.w("ListFragment", "OnCreateView");
View rootView = inflater.inflate(R.layout.fragment_list, container, false);
ButterKnife.bind(this, rootView);
if (getActivity() instanceof ListProvider && getActivity() instanceof PerformerSelectedListener) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исключение всё же кидать надо, если активити эти интерфейсы не реализует.

@Veda345 Veda345 changed the title Hw for Fragments, Content Provider and SQLite Воронина Веда Aug 10, 2016
selectionArgs, null, null, sortOrder);

cursor.setNotificationUri(getContext().getContentResolver(),
CONTENT_URI);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setNotificationUri для чего, если не секрет?

+");");

db.execSQL("CREATE INDEX idx_genres_" + Genre.ID +
" ON " + GENRES + "(" + Genre.ID + ")");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужен?

@matreshkin
Copy link

ВСЕ, ЖДУ ОБНОВЛЕНИЙ

@Veda345
Copy link
Author

Veda345 commented Aug 11, 2016

Встроенную функцию для журнала не нашла, остальное все вроде поправила

mDbOpenHelper = new DBHelper(context);
}

public void insertSinger(Singer singer) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Транзакцию не хочешь оформить?

public void insertSinger(Singer singer) {
SQLiteDatabase db = mDbOpenHelper.getWritableDatabase();
ContentValues values = createCV(singer);
db.beginTransaction();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У меня вопрос - почему при транзакциях использут try-finally блоки?

# Conflicts:
#	server/src/main/java/com/example/vorona/server/db/DbBackend.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants