mirror of https://github.com/m2049r/xmrwallet.git
commit
905ee8b8a9
|
@ -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" />
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue