Skip to content

Commit

Permalink
Merge pull request #124 from caarmen/remove-play-store-link
Browse files Browse the repository at this point in the history
Remove play store link
  • Loading branch information
caarmen authored Feb 24, 2019
2 parents 12f664a + bfdbf45 commit adc3aac
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,14 @@
*/
package ca.rmen.android.networkmonitor.app.speedtest;

import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.webkit.WebView;

import androidx.appcompat.app.AppCompatActivity;
import ca.rmen.android.networkmonitor.Constants;
import ca.rmen.android.networkmonitor.R;
import android.util.Log;

/**
* Activity which shows an HTML explanation of the speed test limitations
Expand All @@ -58,17 +55,4 @@ public void okClicked(View view) {
finish();
}

@SuppressWarnings("UnusedParameters")
public void playStoreClicked(View view) {
Log.v(TAG, "playStoreClicked");
String playStoreUrl = "https://play.google.com/store/search?c=apps&q=speed test";
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(playStoreUrl));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
}
startActivity(intent);

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,7 @@ limitations under the License.
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="okClicked"
android:text="@string/speed_test_good_enough" />
android:text="@string/speed_test_close" />

<Button
style="?android:attr/buttonBarButtonStyle"
android:id="@+id/button_nok"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:onClick="playStoreClicked"
android:text="@string/speed_test_play_store" />
</LinearLayout>
</LinearLayout>
3 changes: 1 addition & 2 deletions networkmonitor/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ limitations under the License.
<string name="speed_test_missing_info_dialog_title">Falta información</string>
<string name="speed_test_missing_info_dialog_message">La prueba de velocidad no se puede activar porque el campo URL está vacío.</string>
<string name="speed_test_disabled">Deshabilitado</string>
<string name="speed_test_good_enough">¡Suficiente para mi!</string>
<string name="speed_test_play_store">Quiero más&#8230;</string>
<string name="speed_test_close">Cerrar</string>
<string name="speed_test_about_file">file:///android_asset/speed_test_about-es.html</string>

<!-- Polling frequency strings -->
Expand Down
3 changes: 1 addition & 2 deletions networkmonitor/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ limitations under the License.
<string name="speed_test_missing_info_dialog_title">Informations manquantes</string>
<string name="speed_test_missing_info_dialog_message">Le test de vitesse ne peut être activé parce que le champ URL est vide.</string>
<string name="speed_test_disabled">Désactivé</string>
<string name="speed_test_good_enough">Très bien !</string>
<string name="speed_test_play_store">J\'en veux +&#8230;</string>
<string name="speed_test_close">Fermer</string>
<string name="speed_test_about_file">file:///android_asset/speed_test_about-fr.html</string>

<!-- Polling frequency strings -->
Expand Down
3 changes: 1 addition & 2 deletions networkmonitor/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ limitations under the License.
<string name="speed_test_missing_info_dialog_title">Missing information</string>
<string name="speed_test_missing_info_dialog_message">The speed test cannot be enabled because the URL field is empty</string>
<string name="speed_test_disabled">Disabled</string>
<string name="speed_test_good_enough">Good enough!</string>
<string name="speed_test_play_store">I want more&#8230;</string>
<string name="speed_test_close">Close</string>
<string name="speed_test_about_file">file:///android_asset/speed_test_about.html</string>

<!-- Polling frequency strings -->
Expand Down

0 comments on commit adc3aac

Please sign in to comment.