Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit b58076a

Browse files
author
Evgenii Kanivets
committed
Fix Dropbox auth crash.
1 parent 5d675fd commit b58076a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
android:theme="@style/Theme.Default"
9494
android:windowSoftInputMode="adjustResize" />
9595
<activity
96-
android:name="com.dropbox.client2.android.AuthActivity"
96+
android:name="com.dropbox.core.android.AuthActivity"
9797
android:configChanges="orientation|keyboard"
9898
android:launchMode="singleTask"
9999
android:theme="@android:style/Theme.Translucent.NoTitleBar">

app/src/main/java/com/blogspot/e_kanivets/moneytracker/activity/external/BackupActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ protected void onResume() {
7575
try {
7676
preferenceController.writeDropboxAccessToken(Auth.getOAuth2Token());
7777
btnBackupNow.setEnabled(true);
78+
DbxRequestConfig config = new DbxRequestConfig("open_money_tracker");
79+
dbClient = new DbxClientV2(config, Auth.getOAuth2Token());
7880
fetchBackups();
7981
} catch (IllegalStateException e) {
8082
Timber.e("Error authenticating: %s", e.getMessage());

0 commit comments

Comments
 (0)