Changed strings and UI a bit.

This commit is contained in:
Dmitry Yunitsky 2015-02-02 12:03:59 +03:00 committed by Alex Zolotarev
parent fcd5d732d5
commit 8d0c883553
4 changed files with 11 additions and 7 deletions

View file

@ -48,7 +48,7 @@
android:id="@+id/v__divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:background="@color/downloader_gray"
android:background="?android:attr/listDivider"
android:visibility="gone"/>
<Button

View file

@ -15,6 +15,7 @@
<TextView
style="@style/MwmText"
android:layout_width="wrap_content"
android:textSize="20sp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:padding="@dimen/margin_small"
@ -25,12 +26,13 @@
android:layout_height="wrap_content"
android:fontFamily="@string/robotoLight"
android:padding="@dimen/margin_small"
android:text="Tap on +1 button to recommend"/>
android:textSize="14sp"
android:text="@string/rating_google_plus"/>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:background="@android:color/darker_gray"/>
android:background="?android:attr/listDivider"/>
<com.google.android.gms.plus.PlusOneButton
android:id="@+id/btn__gplus"

View file

@ -17,6 +17,8 @@ public class LikesManager
public static final Integer[] GPLAY_OLD_USERS = new Integer[]{1, 7, 10, 15, 21};
public static final Integer[] GPLUS_OLD_USERS = new Integer[]{4, 14, 24, 34, 44};
private static final long DIALOG_DELAY_MILLIS = 30000;
private final boolean mIsNewUser;
private final int mSessionNum;
@ -86,7 +88,7 @@ public class LikesManager
}
}
};
mHandler.postDelayed(mLikeRunnable, 1);
mHandler.postDelayed(mLikeRunnable, DIALOG_DELAY_MILLIS);
}
public void cancelLikeDialogs()

View file

@ -75,8 +75,8 @@ public class RateStoreDialogFragment extends DialogFragment implements View.OnCl
final Button button = (Button) root.findViewById(R.id.btn__explain_bad_rating);
button.setVisibility(View.VISIBLE);
button.setOnClickListener(RateStoreDialogFragment.this);
((TextView) root.findViewById(R.id.tv__title)).setText("Thank you!");
((TextView) root.findViewById(R.id.tv__subtitle)).setText("Would you like to share any ideas or issues, so we can improve the app for you?");
((TextView) root.findViewById(R.id.tv__title)).setText(getString(R.string.rating_thanks));
((TextView) root.findViewById(R.id.tv__subtitle)).setText(getString(R.string.rating_share_ideas));
root.findViewById(R.id.v__divider).setVisibility(View.VISIBLE);
rateBar.setVisibility(View.GONE);
super.onAnimationEnd(animation);
@ -117,7 +117,7 @@ public class RateStoreDialogFragment extends DialogFragment implements View.OnCl
}
intent.setData(Utils.buildMailUri(Constants.Url.MAIL_MAPSME_RATING, "Rating : " + mRating,
"OS : " + Build.VERSION.SDK_INT + "\n" + "Version : " + BuildConfig.APPLICATION_ID + " " + BuildConfig.VERSION_NAME + "\n" +
getString(R.string.rating_user_since) + " " + DateUtils.formatDateTime(getActivity(), installTime, 0)));
getString(R.string.rating_user_since) + " " + DateUtils.formatDateTime(getActivity(), installTime, 0) + "\n\n"));
try
{
startActivity(intent);