Commit f8008cbc authored by fallenstardust's avatar fallenstardust

upgrade添加设置

修正布局错误
缩短长按时间
parent 270204a9
...@@ -161,7 +161,7 @@ public interface Constants { ...@@ -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 * 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> * <p>
......
...@@ -493,14 +493,21 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie ...@@ -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; ApplicationInfo appInfo = null;
try { try {
appInfo = this.getPackageManager().getApplicationInfo(getPackageName(), PackageManager.GET_META_DATA); appInfo = this.getPackageManager().getApplicationInfo(getPackageName(), PackageManager.GET_META_DATA);
} catch (PackageManager.NameNotFoundException e) { } catch (PackageManager.NameNotFoundException e) {
e.printStackTrace(); e.printStackTrace();
} }
String msg=appInfo.metaData.getString("BUGLY_APPID"); String msg = appInfo.metaData.getString("BUGLY_APPID");
Bugly.init(this, msg, true); Bugly.init(this, msg, true);
} }
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
android:text="Feature" android:text="Feature"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="15dp" android:textSize="15dp"
android:layout_below="@id/tv_title" android:layout_below="@id/iv_upgrade_banner"
android:tag="beta_upgrade_feature"/> 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