Skip to content

Commit

Permalink
Litecoin: Explorer string, alt explorer
Browse files Browse the repository at this point in the history
The string resource for the explorer was missing, and I added
an alternative explorer because the one we were using was showing
a 502 error during testing.  It's nice to have an alternative.
  • Loading branch information
hank committed Jan 22, 2014
1 parent c5ce269 commit ef7199e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
1 change: 0 additions & 1 deletion wallet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
<phase>package</phase>
<inherited>true</inherited>
<configuration>
<archiveDirectory></archiveDirectory>
<includes>
<include>target/*.apk</include>
</includes>
Expand Down
6 changes: 5 additions & 1 deletion wallet/res/menu/wallet_transactions_context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
<item
android:id="@+id/wallet_transactions_context_browse"
android:showAsAction="never"
android:title="@string/action_browse"/>
android:title="@string/wallet_transactions_context_browse"/>
<item
android:id="@+id/wallet_transactions_context_browse2"
android:showAsAction="never"
android:title="@string/wallet_transactions_context_browse2"/>
<item
android:id="@+id/wallet_transactions_context_show_transaction"
android:showAsAction="never"
Expand Down
4 changes: 3 additions & 1 deletion wallet/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
<string name="wallet_transactions_row_warning_backup">Congratulations, you received your first payment! Have you already &lt;u>backed up your wallet&lt;/u>, to protect against loss?</string>
<string name="wallet_transactions_fragment_coinbase">mined</string>
<string name="wallet_transactions_fragment_internal">internal</string>
<string name="wallet_transactions_context_show_qr_title">Show QR code</string>
<string name="wallet_transactions_context_show_qr_title">Show QR code</string>
<string name="wallet_transactions_context_browse">Explorer</string>
<string name="wallet_transactions_context_show_transaction_title">Transaction details</string>
<string name="wallet_options_backup">Back up Keys</string>
<string name="wallet_options_disconnect">Disconnect</string>
Expand Down Expand Up @@ -243,5 +244,6 @@
<string name="sendcoins_fee_required">Fee Required</string>
<string name="preferences_qr_title">QR Code Scanner App</string>
<string name="preferences_qr_summary">Which app should be used for QR code scanning?</string>
<string name="wallet_transactions_context_browse2">Alternative Explorer</string>

</resources>
8 changes: 5 additions & 3 deletions wallet/src/de/schildbach/wallet/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ public class Constants

public static final String CHECKPOINTS_FILENAME = "checkpoints" + FILENAME_NETWORK_SUFFIX;

private static final String EXPLORE_BASE_URL_PROD = "http://explorer.litecoin.net/";
public static final String EXPLORE_BASE_URL = EXPLORE_BASE_URL_PROD;

private static final String EXPLORE_BASE_URL_PROD = "http://ltc.block-explorer.com/";
private static final String EXPLORE2_BASE_URL_PROD = "http://explorer.litecoin.net/";
public static final String EXPLORE_BASE_URL = EXPLORE_BASE_URL_PROD;
public static final String EXPLORE2_BASE_URL = EXPLORE2_BASE_URL_PROD;

public static final String MIMETYPE_TRANSACTION = "application/x-ltctx";

public static final int MAX_NUM_CONFIRMATIONS = 7;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,11 @@ public boolean onActionItemClicked(final ActionMode mode, final MenuItem item)
mode.finish();
return true;

case R.id.wallet_transactions_context_browse2:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(Constants.EXPLORE2_BASE_URL + "tx/" + tx.getHashAsString())));

mode.finish();
return true;
case R.id.wallet_transactions_context_show_transaction:
TransactionActivity.show(activity, tx);
}
Expand Down

0 comments on commit ef7199e

Please sign in to comment.