最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Android不顯示開機向?qū)Ш烷_機氣泡問題

 更新時間:2019年05月12日 15:21:13   作者:Vico-H  
這篇文章主要介紹了Android不顯示開機向?qū)Ш烷_機氣泡問題,需要的朋友可以參考下

修改好的代碼下載地址:

https://github.com/Vico-H/Launcher

•不顯示開機向?qū)?/p>

--------------------------------------------------------------------------------
修改Launcher2.java的代碼

(文件位置: /alps/packages/apps/Launcher2/src/com/android/launcher2/Launcher.java)

網(wǎng)站查看源碼:

https://www.androidos.net.cn/android/6.0.1_r16/xref/packages/apps/Launcher2/src/com/android/launcher2/Launcher.java

Launcher2.java部分源碼如下:

······
public void showFirstRunWorkspaceCling() {
  // Enable the clings only if they have not been dismissed before
  if (isClingsEnabled() &&
    !mSharedPrefs.getBoolean(Cling.WORKSPACE_CLING_DISMISSED_KEY, false) &&//此處false改為true
    !skipCustomClingIfNoAccounts() ) {
   // If we're not using the default workspace layout, replace workspace cling
   // with a custom workspace cling (usually specified in an overlay)
   // For now, only do this on tablets
   if (mSharedPrefs.getInt(LauncherProvider.DEFAULT_WORKSPACE_RESOURCE_ID, 0) != 0 &&
     getResources().getBoolean(R.bool.config_useCustomClings)) {
    // Use a custom cling
    View cling = findViewById(R.id.workspace_cling);
    ViewGroup clingParent = (ViewGroup) cling.getParent();
    int clingIndex = clingParent.indexOfChild(cling);
    clingParent.removeViewAt(clingIndex);
    View customCling = mInflater.inflate(R.layout.custom_workspace_cling, clingParent, false);
    clingParent.addView(customCling, clingIndex);
    customCling.setId(R.id.workspace_cling);
   }
   initCling(R.id.workspace_cling, null, false, 0);
  } else {
   removeCling(R.id.workspace_cling);
  }
 }
 public void showFirstRunAllAppsCling(int[] position) {
  // Enable the clings only if they have not been dismissed before
  if (isClingsEnabled() &&
    !mSharedPrefs.getBoolean(Cling.ALLAPPS_CLING_DISMISSED_KEY, false)) {//此處false改為true
   initCling(R.id.all_apps_cling, position, true, 0);
  } else {
   removeCling(R.id.all_apps_cling);
  }
 }
 public Cling showFirstRunFoldersCling() {
  // Enable the clings only if they have not been dismissed before
  if (isClingsEnabled() &&
    !mSharedPrefs.getBoolean(Cling.FOLDER_CLING_DISMISSED_KEY, false)) {//此處false改為true
   return initCling(R.id.folder_cling, null, true, 0);
  } else {
   removeCling(R.id.folder_cling);
   return null;
  }
 }
······

修改如下:

- !mSharedPrefs.getBoolean(Cling.WORKSPACE_CLING_DISMISSED_KEY, false) &&
+ !mSharedPrefs.getBoolean(Cling.WORKSPACE_CLING_DISMISSED_KEY, true) &&
- !mSharedPrefs.getBoolean(Cling.ALLAPPS_CLING_DISMISSED_KEY, false)) 
+ !mSharedPrefs.getBoolean(Cling.ALLAPPS_CLING_DISMISSED_KEY, true)) 
- !mSharedPrefs.getBoolean(Cling.FOLDER_CLING_DISMISSED_KEY, false)) 
+ !mSharedPrefs.getBoolean(Cling.FOLDER_CLING_DISMISSED_KEY, true)) 

•不顯示開機氣泡

--------------------------------------------------------------------------------
有個需求是開機不要下面這個圖片所示的氣泡

修改Launcher3.java的代碼

(文件位置: /alps/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java)

網(wǎng)站查看源碼:

https://www.androidos.net.cn/android/6.0.1_r16/xref/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java

Launcher3.java部分源碼如下:

······
protected void onCreate(Bundle savedInstanceState) {
  ······
  if (shouldShowIntroScreen()) {
     showIntroScreen();
    } else {
     showFirstRunActivity();
     showFirstRunClings();//注釋此行即可
    }
}
······

將下面的直接的這行注釋掉就不會有開機氣泡了

- showFirstRunClings();
+ //showFirstRunClings();

總結(jié)

以上所述是小編給大家介紹的Android不顯示開機向?qū)Ш烷_機氣泡問題,希望對大家有所幫助,如果大家有任何歡迎給我留言,小編會及時回復(fù)大家的!

相關(guān)文章

最新評論

岑溪市| 二连浩特市| 宕昌县| 同心县| 剑川县| 山阳县| 台中市| 长武县| 肇州县| 南郑县| 贵溪市| 建昌县| 班玛县| 霸州市| 新竹市| 营口市| 南溪县| 三河市| 肇庆市| 隆德县| 泽州县| 武隆县| 中宁县| 河北区| 东平县| 溧水县| 河西区| 朝阳市| 明水县| 金坛市| 四平市| 威远县| 双桥区| 太原市| 关岭| 绍兴县| 新龙县| 资源县| 寿光市| 崇礼县| 疏勒县|