mirror of
https://github.com/danog/termux-api.git
synced 2024-11-30 04:19:20 +01:00
Clean up log calls
This commit is contained in:
parent
85180038e3
commit
41341bd0ca
@ -75,7 +75,6 @@ public class NotificationAPI {
|
||||
|
||||
if (useSound) notification.setSound(Settings.System.DEFAULT_NOTIFICATION_URI);
|
||||
|
||||
|
||||
if (urlExtra != null) {
|
||||
Intent urlIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(urlExtra));
|
||||
PendingIntent pi = PendingIntent.getActivity(context, 0, urlIntent, 0);
|
||||
|
@ -7,6 +7,7 @@ import android.net.Uri;
|
||||
import android.util.Log;
|
||||
|
||||
import com.termux.api.util.ResultReturner;
|
||||
import com.termux.api.util.TermuxApiLogger;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
@ -44,7 +45,6 @@ public class StorageGetAPI {
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
outputFile = getIntent().getStringExtra(FILE_EXTRA);
|
||||
Log.e("termux-api", "output file: " + outputFile);
|
||||
|
||||
// ACTION_OPEN_DOCUMENT is the intent to choose a file via the system's file browser.
|
||||
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
|
||||
@ -78,7 +78,7 @@ public class StorageGetAPI {
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
Log.e("termux-api", "Error copying " + data + " to " + outputFile);
|
||||
TermuxApiLogger.error("Error copying " + data + " to " + outputFile);
|
||||
}
|
||||
}
|
||||
finish();
|
||||
|
Loading…
Reference in New Issue
Block a user