From 81a9aa6938da9a6301b15acf9f75d9c1bb201a49 Mon Sep 17 00:00:00 2001 From: m2049r <30435443+m2049r@users.noreply.github.com> Date: Mon, 14 Aug 2017 09:56:19 +0200 Subject: [PATCH] allow only portrait remove some debug messages --- app/src/main/AndroidManifest.xml | 8 ++++++-- .../com/m2049r/xmrwallet/service/WalletService.java | 13 ------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 92f895a7..56cefb6c 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -17,12 +17,16 @@ + android:launchMode="singleTop" + android:screenOrientation="portrait"> + android:label="@string/app_name" + android:screenOrientation="portrait" + android:configChanges="orientation|keyboardHidden"> diff --git a/app/src/main/java/com/m2049r/xmrwallet/service/WalletService.java b/app/src/main/java/com/m2049r/xmrwallet/service/WalletService.java index 7fd17d27..e9a2c22a 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/service/WalletService.java +++ b/app/src/main/java/com/m2049r/xmrwallet/service/WalletService.java @@ -34,12 +34,6 @@ import com.m2049r.xmrwallet.model.WalletListener; import com.m2049r.xmrwallet.model.WalletManager; import com.m2049r.xmrwallet.util.Helper; -// Bind / Unbind -// Activity onCreate() / onDestroy() -// or -// Activity onStart() / onStop() - - public class WalletService extends Service { final static String TAG = "WalletService"; @@ -133,16 +127,10 @@ public class WalletService extends Service { Log.d(TAG, "refreshed() " + wallet.getName() + " " + wallet.getBalance() + " sync=" + wallet.isSynchronized() + " with observer " + observer); if (updated) { if (observer != null) { - Log.d(TAG, "refreshed() A"); updateDaemonState(wallet, 0); - Log.d(TAG, "refreshed() B"); TransactionHistory history = wallet.getHistory(); - Log.d(TAG, "refreshed() C " + history.getCount()); history.refresh(); - Log.d(TAG, "refreshed() D " + history.getCount()); - Log.d(TAG, "refreshed() E"); observer.onRefreshed(wallet, true); - Log.d(TAG, "refreshed() D"); updated = false; } } @@ -418,4 +406,3 @@ public class WalletService extends Service { return wallet; } } -