summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMert Tümer <merttumer7@gmail.com>2018-04-05 15:18:46 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-04-13 18:07:34 +0200
commit923b2acc1f6bad5ef344a4c6d7e2bac23c37d416 (patch)
tree754d44ba939c69167afe888ec458097c0028cf66 /android
parent68ee5d5997197be3b087ed9f550da4dac6e21bef (diff)
tdf#116820 The viewer does't show recent files
Change-Id: I8a4d4f2cb78a1fa772936e263e1aa3975e8f89ff Signed-off-by: Mert Tümer <merttumer7@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/52458 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'android')
-rw-r--r--android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
index f8d08aae171f..938112c99149 100644
--- a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
+++ b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
@@ -444,6 +444,8 @@ public class LibreOfficeUIActivity extends AppCompatActivity implements Settings
public void run() {
Toast.makeText(activity, e.getMessage(),
Toast.LENGTH_SHORT).show();
+ // switch back to the default provider.
+ switchToDocumentProvider(documentProviderFactory.getDefaultProvider());
}
});
startActivity(new Intent(activity, DocumentProviderSettingsActivity.class));