1
0
mirror of https://github.com/etesync/android synced 2024-11-15 12:28:57 +00:00

Use string resource for logging file provider authority; vcard4android update

This commit is contained in:
Ricki Hirner 2016-10-17 23:56:45 +02:00
parent 8e5ca5a72d
commit ae8bf4d49e
4 changed files with 6 additions and 5 deletions

View File

@ -187,7 +187,7 @@
</activity>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="at.bitfire.davdroid.log"
android:authorities="@string/authority_log_provider"
android:grantUriPermissions="true"
android:exported="false">
<meta-data

View File

@ -84,19 +84,19 @@ public class DebugInfoActivity extends AppCompatActivity implements LoaderManage
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.setType("text/plain");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "DAVdroid " + BuildConfig.VERSION_NAME + " debug info");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.app_name) + " " + BuildConfig.VERSION_NAME + " debug info");
try {
File debugInfoDir = new File(getCacheDir(), "debug-info");
debugInfoDir.mkdir();
reportFile = new File(debugInfoDir, "davdroid-debug.txt");
reportFile = new File(debugInfoDir, "debug.txt");
App.log.fine("Writing debug info to " + reportFile.getAbsolutePath());
FileWriter writer = new FileWriter(reportFile);
writer.write(report);
writer.close();
sendIntent.putExtra(Intent.EXTRA_STREAM, FileProvider.getUriForFile(this, "at.bitfire.davdroid.log", reportFile));
sendIntent.putExtra(Intent.EXTRA_STREAM, FileProvider.getUriForFile(this, getString(R.string.authority_log_provider), reportFile));
startActivity(Intent.createChooser(sendIntent, null));
} catch (IOException e) {

View File

@ -233,6 +233,7 @@
<string name="exception_show_details">Show details</string>
<!-- sync errors and DebugInfoActivity -->
<string name="authority_log_provider">at.bitfire.davdroid.log</string>
<string name="debug_info_title">Debug info</string>
<string name="sync_error_permissions">DAVdroid permissions</string>
<string name="sync_error_permissions_text">Additional permissions required</string>

@ -1 +1 @@
Subproject commit 37a8021a5dbd88c0f5ca0d6109c515e8726b00ca
Subproject commit bf48e81013e4941d111b302547b298ac58c9c151