Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a3319f7 authored by Amit Kumar's avatar Amit Kumar
Browse files

Fix number of rows and folder bug

parent ad50e8d5
Loading
Loading
Loading
Loading

.idea/vcs.xml

0 → 100644
+6 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="VcsDirectoryMappings">
    <mapping directory="$PROJECT_DIR$" vcs="Git" />
  </component>
</project>
 No newline at end of file
+10 −4
Original line number Diff line number Diff line
@@ -25,12 +25,18 @@ dependencies {
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:26.0.0'
    compile 'com.android.support:gridlayout-v7:26.0.0'
    compile 'com.github.droidlibrarian:horizontalpager:v2.0'
    compile 'me.relex:circleindicator:1.2.2@aar'
    compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support:gridlayout-v7:26.1.0'
    compile('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
        transitive = true;
        transitive = true
    }

    compile files('libs/bruce-utils.jar')

    testCompile 'junit:junit:4.12'

    compile 'org.lucasr.dspec:dspec:0.1.1'
}

apply plugin: 'com.jakewharton.hugo'
+67.7 KiB

File added.

No diff preview for this file type.

+12 −8
Original line number Diff line number Diff line
@@ -6,27 +6,31 @@
    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:name=".BlissLauncher"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:name=".BlissLauncher">
        <activity android:name=".MainActivity"
            android:theme="@style/HomeScreenTheme"
        android:theme="@style/AppTheme">
        <activity
            android:name=".DesktopActivity"
            android:clearTaskOnLaunch="true"
            android:launchMode="singleTask"
            android:screenOrientation="nosensor">
            android:screenOrientation="nosensor"
            android:stateNotNeeded="true"
            android:theme="@style/HomeScreenTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.HOME" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <meta-data
            android:name="io.fabric.ApiKey"
            android:value="8fcf342f1b8ac74d6980872082b7216ef4682a29"
            />
            android:value="8fcf342f1b8ac74d6980872082b7216ef4682a29" />
    </application>

</manifest>
+54 −0
Original line number Diff line number Diff line
package org.indin.blisslaunchero;

import android.graphics.Canvas;
import android.graphics.Point;
import android.view.View;

/**
 * Created by falcon on 15/2/18.
 */

public class BlissDragShadowBuilder extends View.DragShadowBuilder {

    private Point mScaleFactor;
    // Defines the constructor for myDragShadowBuilder
    public BlissDragShadowBuilder(View v) {

        // Stores the View parameter passed to myDragShadowBuilder.
        super(v);

    }

    // Defines a callback that sends the drag shadow dimensions and touch point back to the
    // system.
    @Override
    public void onProvideShadowMetrics (Point size, Point touch) {
        // Defines local variables
        int width;
        int height;

        // Sets the width of the shadow to half the width of the original View
        width = (int) (getView().getWidth() * 1.2);

        // Sets the height of the shadow to half the height of the original View
        height = (int) (getView().getHeight() * 1.2);

        // Sets the size parameter's width and height values. These get back to the system
        // through the size parameter.
        size.set(width, height);
        // Sets size parameter to member that will be used for scaling shadow image.
        mScaleFactor = size;

        // Sets the touch point's position to be in the middle of the drag shadow
        touch.set(width/2, height/2);
    }

    @Override
    public void onDrawShadow(Canvas canvas) {

        // Draws the ColorDrawable in the Canvas passed in from the system.
        canvas.scale(mScaleFactor.x/(float)getView().getWidth(), mScaleFactor.y/(float)getView().getHeight());
        getView().draw(canvas);
    }

}
Loading