Commit f8008cbc authored by fallenstardust's avatar fallenstardust

upgrade添加设置

修正布局错误
缩短长按时间
parent 270204a9
......@@ -161,7 +161,7 @@ public interface Constants {
/***
* 长按删除
*/
long LONG_PRESS_DRAG = 900;
long LONG_PRESS_DRAG = 600;
/***
* adb shell am start -n cn.garymb.ygomobile/cn.garymb.ygomobile.ui.home.MainActivity -a ygomobile.intent.action.DECK --es android.intent.extra.TEXT 青眼白龙.ydk
* <p>
......
......@@ -493,14 +493,21 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
}
}
public void initBugly(){
public void initBugly() {
Beta.initDelay = 0;
Beta.showInterruptedStrategy = true;
Beta.largeIconId = R.drawable.ic_icon_round;
Beta.defaultBannerId = R.drawable.ic_icon_round;
Beta.strToastYourAreTheLatestVersion = this.getString(R.string.Already_Lastest);
Beta.strToastCheckingUpgrade = this.getString(R.string.Checking_Update);
Beta.upgradeDialogLayoutId = R.layout.dialog_upgrade;
ApplicationInfo appInfo = null;
try {
appInfo = this.getPackageManager().getApplicationInfo(getPackageName(), PackageManager.GET_META_DATA);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
String msg=appInfo.metaData.getString("BUGLY_APPID");
String msg = appInfo.metaData.getString("BUGLY_APPID");
Bugly.init(this, msg, true);
}
......
......@@ -38,7 +38,7 @@
android:text="Feature"
android:textColor="@color/white"
android:textSize="15dp"
android:layout_below="@id/tv_title"
android:layout_below="@id/iv_upgrade_banner"
android:tag="beta_upgrade_feature"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment