Bug 687312 - Show a non-interactive UI as soon as possible on startup (sdcard profiles) r=mbrubeck
authorMark Finkle <mfinkle@mozilla.com>
Thu, 22 Sep 2011 16:43:06 -0400
changeset 77351 f829841e66189806c65776b1d4e129fcdaf9b954
parent 77350 8a77bab70ad591775777828ec89d5447130dc10b
child 77352 0c47234a402129649f1012e38a67eb70a05ad332
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersmbrubeck
bugs687312
milestone9.0a1
Bug 687312 - Show a non-interactive UI as soon as possible on startup (sdcard profiles) r=mbrubeck
embedding/android/GeckoSurfaceView.java
--- a/embedding/android/GeckoSurfaceView.java
+++ b/embedding/android/GeckoSurfaceView.java
@@ -116,18 +116,18 @@ class GeckoSurfaceView
         Canvas c = holder.lockCanvas();
         if (c == null) {
             Log.i(LOG_FILE_NAME, "canvas is null");
             return;
         }
 
         Resources res = getResources();
 
-        File profiles = new File(GeckoApp.sGREDir, "files/mozilla/profiles.ini");
-        if (profiles.exists() == false) {
+        File filesDir = new File(GeckoApp.sGREDir, "files");
+        if (filesDir.exists() == false) {
             // Just show the simple splash screen for "new profile" startup
             c.drawColor(res.getColor(R.color.splash_background));
             Drawable drawable = res.getDrawable(R.drawable.splash);
             int w = drawable.getIntrinsicWidth();
             int h = drawable.getIntrinsicHeight();
             int x = (width - w) / 2;
             int y = (height - h) / 2 - 16;
             drawable.setBounds(x, y, x + w, y + h);