• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Decorate statusbar and DA Launcher for Android.


Commit MetaInfo

Revisionb488d3e1633597e1bc9e95ad6a478441144a99ad (tree)
Time2014-04-18 18:07:45
AuthorKana Koda <kodakana@user...>
CommiterKana Koda

Log Message

画面回転時などにチョーサーが重ねて開く問題の修正。

Change Summary

Incremental Difference

Binary files a/bin/Kazaricon.apk and b/bin/Kazaricon.apk differ
Binary files a/bin/classes.dex and b/bin/classes.dex differ
Binary files a/bin/classes/org/pulpdust/kazaricon/DaLauncherActivity.class and b/bin/classes/org/pulpdust/kazaricon/DaLauncherActivity.class differ
--- a/src/org/pulpdust/kazaricon/DaLauncherActivity.java
+++ b/src/org/pulpdust/kazaricon/DaLauncherActivity.java
@@ -26,6 +26,10 @@ public class DaLauncherActivity extends FragmentActivity {
2626 readPrefs();
2727 super.onCreate(savedInstanceState);
2828 if (!isIntentAvailable(this, DA_LAUNCH)) finish();
29+ Object flag = getLastCustomNonConfigurationInstance();
30+ if (flag != null){
31+
32+ } else {
2933 String txt;
3034 if (Build.VERSION.SDK_INT >= 11){
3135 forHoneycomb fhc = new forHoneycomb();
@@ -38,6 +42,7 @@ public class DaLauncherActivity extends FragmentActivity {
3842 dal.putExtra(DA_EX_TEXT, txt);
3943 dal.putExtra(DA_EX_THEME, look);
4044 startActivityForResult(Intent.createChooser(dal, getString(R.string.dalauncher)), DA_REQUEST);
45+ }
4146 }
4247
4348 @Override
@@ -60,6 +65,12 @@ public class DaLauncherActivity extends FragmentActivity {
6065 finish();
6166 }
6267
68+ @Override
69+ public Object onRetainCustomNonConfigurationInstance(){
70+ boolean flag = true;
71+ return flag;
72+ }
73+
6374 void readPrefs(){
6475 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
6576 look = Integer.parseInt(sp.getString("look", "1"));