Skip to content

Commit

Permalink
allow only portrait
Browse files Browse the repository at this point in the history
remove some debug messages
  • Loading branch information
m2049r committed Aug 14, 2017
1 parent 9751825 commit 81a9aa6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
8 changes: 6 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@

<activity
android:name=".WalletActivity"
android:configChanges="orientation|keyboardHidden"
android:label="@string/wallet_activity_name"
android:launchMode="singleTop"></activity>
android:launchMode="singleTop"
android:screenOrientation="portrait"></activity>

<activity
android:name=".LoginActivity"
android:label="@string/app_name">
android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
13 changes: 0 additions & 13 deletions app/src/main/java/com/m2049r/xmrwallet/service/WalletService.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@
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";

Expand Down Expand Up @@ -133,16 +127,10 @@ public void refreshed() {
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;
}
}
Expand Down Expand Up @@ -418,4 +406,3 @@ private Wallet openWallet(String walletName, String walletPassword) {
return wallet;
}
}

0 comments on commit 81a9aa6

Please sign in to comment.