@@ -0,0 +1,2468 @@
+/*%0A * Copyright 2016 Peter Kenji Yamanaka%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.pyamsoft.pydroid.support;%0A%0Aimport android.support.annotation.CheckResult;%0Aimport android.support.annotation.NonNull;%0Aimport android.text.Spannable;%0Aimport com.pyamsoft.pydroid.util.StringUtil;%0A%0Apublic abstract class RatingActivity extends DonationActivity%0A    implements RatingDialog.ChangeLogProvider %7B%0A%0A  @NonNull @Override public final Spannable getChangeLogText() %7B%0A    // The changelog text%0A    final String title = %22What's New in Version %22 + getVersionName();%0A    final String%5B%5D lines = getChangeLogLines();%0A%0A    // Turn it into a spannable%0A    final String%5B%5D fullLines = new String%5Blines.length + 1%5D;%0A    fullLines%5B0%5D = title;%0A    System.arraycopy(lines, 0, fullLines, 1, fullLines.length - 1);%0A    final Spannable spannable = StringUtil.createLineBreakBuilder(fullLines);%0A%0A    int start = 0;%0A    int end = title.length();%0A    final int largeSize =%0A        StringUtil.getTextSizeFromAppearance(this, android.R.attr.textAppearanceLarge);%0A    final int largeColor =%0A        StringUtil.getTextColorFromAppearance(this, android.R.attr.textAppearanceLarge);%0A    final int smallSize =%0A        StringUtil.getTextSizeFromAppearance(this, android.R.attr.textAppearanceSmall);%0A    final int smallColor =%0A        StringUtil.getTextColorFromAppearance(this, android.R.attr.textAppearanceSmall);%0A%0A    StringUtil.boldSpan(spannable, start, end);%0A    StringUtil.sizeSpan(spannable, start, end, largeSize);%0A    StringUtil.colorSpan(spannable, start, end, largeColor);%0A%0A    start += end + 2;%0A    for (final String line : lines) %7B%0A      end += 2 + line.length();%0A    %7D%0A%0A    StringUtil.sizeSpan(spannable, start, end, smallSize);%0A    StringUtil.colorSpan(spannable, start, end, smallColor);%0A%0A    return spannable;%0A  %7D%0A%0A  @CheckResult @NonNull protected abstract String%5B%5D getChangeLogLines();%0A%0A  @CheckResult @NonNull protected abstract String getVersionName();%0A%7D%0A

Update changelog to use new activity