Skip to content

Commit

Permalink
Revert "codinguser#876 - Logs and comments"
Browse files Browse the repository at this point in the history
This reverts commit 453252e.
  • Loading branch information
slak44 committed Sep 6, 2020
1 parent 8c8c21d commit 664a181
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,13 +544,7 @@ public long getID(@NonNull String uid){
if (cursor.moveToFirst()) {
result = cursor.getLong(cursor.getColumnIndexOrThrow(DatabaseSchema.CommonColumns._ID));
} else {
throw new IllegalArgumentException("UID ("
+ uid
+ ") does not exist in Table ("
+ mTableName
+ ") of db ("
+ mDb.getPath()
+ ")");
throw new IllegalArgumentException(mTableName + " with GUID " + uid + " does not exist in the db");
}
} finally {
cursor.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,19 +328,13 @@ protected void onResume() {

@Override
protected void onStart() {

super.onStart();

if (BuildConfig.CAN_REQUEST_RATING) {
RateThisApp.init(rateAppConfig);
RateThisApp.onStart(this);
RateThisApp.showRateDialogIfNeeded(this);
}

Log.i(LOG_TAG,
"New active db (" + GnuCashApplication.getActiveDb()
.getPath() + ")");

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,7 @@ protected void onResume() {
*/
private void setTitleIndicatorColor() {

final String currentAccountUID = getCurrentAccountUID();

int iColor = AccountsDbAdapter.getActiveAccountColorResource(currentAccountUID);
int iColor = AccountsDbAdapter.getActiveAccountColorResource(getCurrentAccountUID());

mTabLayout.setBackgroundColor(iColor);

Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/org/gnucash/android/util/BookUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ public static void activateBook(@NonNull String bookUID){
* @param bookUID GUID of the book to be loaded
*/
public static void loadBook(@NonNull String bookUID){

activateBook(bookUID);

AccountsActivity.start(GnuCashApplication.getAppContext());
}
}

0 comments on commit 664a181

Please sign in to comment.