File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed
app/src/main/java/org/gnucash/android Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,13 @@ public long getID(@NonNull String uid){
541
541
if (cursor .moveToFirst ()) {
542
542
result = cursor .getLong (cursor .getColumnIndexOrThrow (DatabaseSchema .CommonColumns ._ID ));
543
543
} else {
544
- throw new IllegalArgumentException (mTableName + " with GUID " + uid + " does not exist in the db" );
544
+ throw new IllegalArgumentException ("UID ("
545
+ + uid
546
+ + ") does not exist in Table ("
547
+ + mTableName
548
+ + ") of db ("
549
+ + mDb .getPath ()
550
+ + ")" );
545
551
}
546
552
} finally {
547
553
cursor .close ();
Original file line number Diff line number Diff line change @@ -281,13 +281,19 @@ protected void onResume() {
281
281
282
282
@ Override
283
283
protected void onStart () {
284
+
284
285
super .onStart ();
285
286
286
287
if (BuildConfig .CAN_REQUEST_RATING ) {
287
288
RateThisApp .init (rateAppConfig );
288
289
RateThisApp .onStart (this );
289
290
RateThisApp .showRateDialogIfNeeded (this );
290
291
}
292
+
293
+ Log .i (LOG_TAG ,
294
+ "New active db (" + GnuCashApplication .getActiveDb ()
295
+ .getPath () + ")" );
296
+
291
297
}
292
298
293
299
/**
Original file line number Diff line number Diff line change @@ -382,7 +382,9 @@ protected void onResume() {
382
382
*/
383
383
private void setTitleIndicatorColor () {
384
384
385
- int iColor = AccountsDbAdapter .getActiveAccountColorResource (getCurrentAccountUID ());
385
+ final String currentAccountUID = getCurrentAccountUID ();
386
+
387
+ int iColor = AccountsDbAdapter .getActiveAccountColorResource (currentAccountUID );
386
388
387
389
mTabLayout .setBackgroundColor (iColor );
388
390
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ public static void activateBook(@NonNull String bookUID){
25
25
* @param bookUID GUID of the book to be loaded
26
26
*/
27
27
public static void loadBook (@ NonNull String bookUID ){
28
+
28
29
activateBook (bookUID );
30
+
29
31
AccountsActivity .start (GnuCashApplication .getAppContext ());
30
32
}
31
33
}
You can’t perform that action at this time.
0 commit comments