allow only portrait

remove some debug messages
This commit is contained in:
m2049r 2017-08-14 09:56:19 +02:00
parent 9751825ed7
commit 81a9aa6938
2 changed files with 6 additions and 15 deletions

View File

@ -17,12 +17,16 @@
<activity <activity
android:name=".WalletActivity" android:name=".WalletActivity"
android:configChanges="orientation|keyboardHidden"
android:label="@string/wallet_activity_name" android:label="@string/wallet_activity_name"
android:launchMode="singleTop"></activity> android:launchMode="singleTop"
android:screenOrientation="portrait"></activity>
<activity <activity
android:name=".LoginActivity" android:name=".LoginActivity"
android:label="@string/app_name"> android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />

View File

@ -34,12 +34,6 @@ import com.m2049r.xmrwallet.model.WalletListener;
import com.m2049r.xmrwallet.model.WalletManager; import com.m2049r.xmrwallet.model.WalletManager;
import com.m2049r.xmrwallet.util.Helper; import com.m2049r.xmrwallet.util.Helper;
// Bind / Unbind
// Activity onCreate() / onDestroy()
// or
// Activity onStart() / onStop()
public class WalletService extends Service { public class WalletService extends Service {
final static String TAG = "WalletService"; 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); Log.d(TAG, "refreshed() " + wallet.getName() + " " + wallet.getBalance() + " sync=" + wallet.isSynchronized() + " with observer " + observer);
if (updated) { if (updated) {
if (observer != null) { if (observer != null) {
Log.d(TAG, "refreshed() A");
updateDaemonState(wallet, 0); updateDaemonState(wallet, 0);
Log.d(TAG, "refreshed() B");
TransactionHistory history = wallet.getHistory(); TransactionHistory history = wallet.getHistory();
Log.d(TAG, "refreshed() C " + history.getCount());
history.refresh(); history.refresh();
Log.d(TAG, "refreshed() D " + history.getCount());
Log.d(TAG, "refreshed() E");
observer.onRefreshed(wallet, true); observer.onRefreshed(wallet, true);
Log.d(TAG, "refreshed() D");
updated = false; updated = false;
} }
} }
@ -418,4 +406,3 @@ public class WalletService extends Service {
return wallet; return wallet;
} }
} }