[android] del: Removed "We have new map style!" dialog.

This commit is contained in:
Alexander Marchuk 2015-10-12 18:48:33 +03:00 committed by Dmitry Yunitsky
parent 5476a84271
commit 72bd7abae1
9 changed files with 2 additions and 90 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 KiB

View file

@ -1,36 +0,0 @@
<com.mapswithme.maps.widget.HeightLimitedFrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="@dimen/margin_base_plus">
<TextView
android:id="@+id/tv__title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/update_maps_alert_title"
android:textAppearance="@style/MwmTextAppearance.Title"
android:textStyle="bold"/>
<ImageView
android:id="@+id/iv__image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/margin_half_plus"
android:contentDescription="@null"
android:src="@drawable/ic_img_new_style_map"
android:tag="@string/tag_height_limited"/>
<TextView
android:id="@+id/tv__text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_half_plus"
android:text="@string/update_maps_alert_message"
android:textAppearance="@style/MwmTextAppearance.Body2"/>
</LinearLayout>
</com.mapswithme.maps.widget.HeightLimitedFrameLayout>

View file

@ -32,8 +32,7 @@ public enum LikesManager
GPLUS_NEW_USERS(GooglePlusDialogFragment.class, DIALOG_DELAY_DEFAULT),
GPLUS_OLD_USERS(GooglePlusDialogFragment.class, DIALOG_DELAY_DEFAULT),
FACEBOOK_INVITE_NEW_USERS(FacebookInvitesDialogFragment.class, DIALOG_DELAY_DEFAULT),
FACEBOOK_INVITES_OLD_USERS(FacebookInvitesDialogFragment.class, DIALOG_DELAY_DEFAULT),
NEW_STYLE_OLD_USERS(UpdateMapsDialogFragment.class, DIALOG_DELAY_SHORT);
FACEBOOK_INVITES_OLD_USERS(FacebookInvitesDialogFragment.class, DIALOG_DELAY_DEFAULT);
public final Class<? extends DialogFragment> clazz;
public final int delay;
@ -53,7 +52,6 @@ public enum LikesManager
static
{
sOldUsersMapping.put(1, LikeType.NEW_STYLE_OLD_USERS);
sOldUsersMapping.put(4, LikeType.GPLAY_OLD_USERS);
// sOldUsersMapping.put(4, LikeType.GPLUS_OLD_USERS);
sOldUsersMapping.put(6, LikeType.FACEBOOK_INVITES_OLD_USERS);

View file

@ -1,50 +0,0 @@
package com.mapswithme.maps.ads;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import com.mapswithme.country.ActiveCountryTree;
import com.mapswithme.maps.MwmActivity;
import com.mapswithme.maps.R;
import com.mapswithme.maps.base.BaseMwmDialogFragment;
import com.mapswithme.util.statistics.Statistics;
public class UpdateMapsDialogFragment extends BaseMwmDialogFragment
{
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState)
{
final Activity activity = getActivity();
final AlertDialog.Builder builder = new AlertDialog.Builder(activity);
final LayoutInflater inflater = activity.getLayoutInflater();
@SuppressLint("InflateParams") final View root = inflater.inflate(R.layout.dialog_new_style, null);
return builder.
setView(root).
setPositiveButton(R.string.update_maps_alert_button_title, new DialogInterface.OnClickListener()
{
@Override
public void onClick(DialogInterface dialog, int which)
{
ActiveCountryTree.updateAll();
activity.startActivity(MwmActivity.createUpdateMapsIntent());
Statistics.INSTANCE.trackSimpleNamedEvent(Statistics.EventName.NEW_STYLE_DIALOG_RATED);
}
}).create();
}
@Override
public void onCancel(DialogInterface dialog)
{
super.onCancel(dialog);
Statistics.INSTANCE.trackSimpleNamedEvent(Statistics.EventName.NEW_STYLE_DIALOG_CANCELLED);
}
}

View file

@ -80,7 +80,7 @@ public class WorkerService extends IntentService
}
}
private void handleActionCheckUpdate()
private static void handleActionCheckUpdate()
{
if (!Framework.nativeIsDataVersionChanged())
return;